feat(config): if process.features.typescript
is set, load jest.config.ts
without external loader
#14403
Triggered via pull request
January 29, 2025 09:45
Status
Cancelled
Total duration
8m 17s
Artifacts
–
nodejs.yml
on: pull_request
prepare-yarn-cache-ubuntu
/
Prepare yarn cache for ubuntu-latest
13s
prepare-yarn-cache-macos
/
Prepare yarn cache for macos-latest
23s
prepare-yarn-cache-windows
/
Prepare yarn cache for windows-latest
52s
TypeScript Compatibility
5m 24s
Typecheck Examples and Tests
3m 55s
Lint
1m 44s
Validate Yarn dependencies and constraints
18s
Node LTS on Ubuntu with leak detection
51s
Matrix: test-coverage
Matrix: test-ubuntu
Matrix: test-macos
Matrix: test-windows
Annotations
99 errors and 15 warnings
readInitialOptions › should give an error when using unsupported loader:
e2e/__tests__/readInitialOptions.test.ts#L96
expect(received).toContain(expected) // indexOf
Matcher error: received value must not be null nor undefined
Received has value: undefined
at Object.toContain (e2e/__tests__/readInitialOptions.test.ts:96:27)
|
traverses directory tree up until it finds jest.config:
e2e/__tests__/jest.config.ts.test.ts#L74
expect(received).toMatchSnapshot()
Snapshot name: `traverses directory tree up until it finds jest.config 1`
- Snapshot - 1
+ Received + 1
console.log
<<REPLACED>>/jest-config-ts/some/nested/directory
- at Object.<anonymous> (__tests__/a-giraffe.js:3:27)
+ at Object.log (__tests__/a-giraffe.js:3:27)
↵
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:74:62)
|
readInitialOptions › should give an error when using unsupported loader:
e2e/__tests__/readInitialOptions.test.ts#L96
expect(received).toContain(expected) // indexOf
Matcher error: received value must not be null nor undefined
Received has value: undefined
at Object.toContain (e2e/__tests__/readInitialOptions.test.ts:96:27)
|
traverses directory tree up until it finds jest.config:
e2e/__tests__/jest.config.ts.test.ts#L74
expect(received).toMatchSnapshot()
Snapshot name: `traverses directory tree up until it finds jest.config 1`
- Snapshot - 1
+ Received + 1
console.log
<<REPLACED>>/jest-config-ts/some/nested/directory
- at Object.<anonymous> (__tests__/a-giraffe.js:3:27)
+ at Object.log (__tests__/a-giraffe.js:3:27)
↵
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:74:62)
|
readInitialOptions › should give an error when using unsupported loader:
e2e/__tests__/readInitialOptions.test.ts#L96
expect(received).toContain(expected) // indexOf
Matcher error: received value must not be null nor undefined
Received has value: undefined
at Object.toContain (e2e/__tests__/readInitialOptions.test.ts:96:27)
|
traverses directory tree up until it finds jest.config:
e2e/__tests__/jest.config.ts.test.ts#L74
expect(received).toMatchSnapshot()
Snapshot name: `traverses directory tree up until it finds jest.config 1`
- Snapshot - 1
+ Received + 1
console.log
<<REPLACED>>/jest-config-ts/some/nested/directory
- at Object.<anonymous> (__tests__/a-giraffe.js:3:27)
+ at Object.log (__tests__/a-giraffe.js:3:27)
↵
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:74:62)
|
Ubuntu with shard 1/4 / Node v23.x
Final attempt failed. Child_process exited with error code 1
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
Ubuntu with shard 1/4 / Node v22.x
Final attempt failed. Child_process exited with error code 1
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
Node LTS on Ubuntu with coverage (1/4)
Final attempt failed. Child_process exited with error code 1
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
Ubuntu with shard 1/4 / Node LTS using jest-jasmine2
Final attempt failed. Child_process exited with error code 1
|
TypeScript Compatibility
Process completed with exit code 1.
|
all passing › runs the tests in the correct order:
e2e/__tests__/circusConcurrent.test.ts#L28
expect(received).toMatchSnapshot()
Snapshot name: `all passing runs the tests in the correct order 1`
- Snapshot - 2
+ Received + 2
@@ -77,16 +77,16 @@
START "ten"
at log (__tests__/concurrent.test.js:15:11)
console.log
- END: "five"
+ END: "six"
at log (__tests__/concurrent.test.js:15:11)
console.log
- END: "six"
+ END: "five"
at log (__tests__/concurrent.test.js:15:11)
console.log
END: "seven"
at Object.toMatchSnapshot (e2e/__tests__/circusConcurrent.test.ts:28:20)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
macOS with shard 1/3 / Node LTS using jest-jasmine2
Final attempt failed. Child_process exited with error code 1
|
macOS with shard 2/3 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 1/3 / Node v23.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 2/3 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 2/3 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 2/3 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 3/3 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 3/3 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 2/3 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 2/3 / Node v23.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 3/3 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 3/3 / Node v23.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 3/3 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 1/4 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 3/3 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 1/4 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 1/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 1/4 / Node v23.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 1/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 4/4 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 4/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 4/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 4/4 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 4/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 4/4 / Node v23.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 2/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 2/4 / Node v20.x
The operation was canceled.
|
Windows with shard 3/4 / Node v23.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 3/4 / Node v23.x
The operation was canceled.
|
Windows with shard 3/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 3/4 / Node LTS using jest-jasmine2
The operation was canceled.
|
Windows with shard 2/4 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 2/4 / Node v16.x
The operation was canceled.
|
macOS with shard 1/3 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 1/3 / Node v18.x
The operation was canceled.
|
Windows with shard 3/4 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 3/4 / Node v18.x
The operation was canceled.
|
Windows with shard 3/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 3/4 / Node v22.x
The operation was canceled.
|
Windows with shard 2/4 / Node v23.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 2/4 / Node v23.x
The operation was canceled.
|
macOS with shard 1/3 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
macOS with shard 1/3 / Node v22.x
The operation was canceled.
|
macOS with shard 1/3 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 1/3 / Node v20.x
The operation was canceled.
|
Windows with shard 2/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 2/4 / Node v22.x
The operation was canceled.
|
Windows with shard 3/4 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 3/4 / Node v16.x
The operation was canceled.
|
Ubuntu with shard 3/4 / Node v23.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
works with single typescript config that imports something:
e2e/__tests__/typescriptConfigFile.test.ts#L38
expect(received).toContain(expected) // indexOf
Expected substring: "PASS __tests__/mytest.alpha.js"
Received string: "Error: Jest: Failed to parse the TypeScript config file /tmp/typescript-config-file/alpha.config.ts
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/tmp/typescript-config-file/common' imported from /tmp/typescript-config-file/alpha.config.ts
at readConfigFileAndSetRootDir (/home/runner/work/jest/jest/packages/jest-config/build/index.js:2252:13)
at async readInitialOptions (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1153:13)
at async readConfig (/home/runner/work/jest/jest/packages/jest-config/build/index.js:924:7)
at async readConfigs (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1174:26)
at async runCLI (/home/runner/work/jest/jest/packages/jest-core/build/index.js:1384:7)
at async Object.run (/home/runner/work/jest/jest/packages/jest-cli/build/index.js:657:9)"
at Object.toContain (e2e/__tests__/typescriptConfigFile.test.ts:38:18)
|
works with multiple typescript configs that import something:
e2e/__tests__/typescriptConfigFile.test.ts#L100
expect(received).toContain(expected) // indexOf
Expected substring: "PASS __tests__/mytest.alpha.js"
Received string: "Error: Jest: Failed to parse the TypeScript config file /tmp/typescript-config-file/alpha.config.ts
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/tmp/typescript-config-file/common' imported from /tmp/typescript-config-file/alpha.config.ts
at readConfigFileAndSetRootDir (/home/runner/work/jest/jest/packages/jest-config/build/index.js:2252:13)
at async readInitialOptions (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1153:13)
at async readConfig (/home/runner/work/jest/jest/packages/jest-config/build/index.js:924:7)
at async Promise.all (index 0)
at async readConfigs (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1190:27)
at async runCLI (/home/runner/work/jest/jest/packages/jest-core/build/index.js:1384:7)
at async Object.run (/home/runner/work/jest/jest/packages/jest-cli/build/index.js:657:9)"
at Object.toContain (e2e/__tests__/typescriptConfigFile.test.ts:100:18)
|
works with single typescript config that does not import anything with project's moduleResolution set to Node16:
e2e/runJest.ts#L283
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at toBe (e2e/runJest.ts:283:22)
at Object.<anonymous> (e2e/__tests__/typescriptConfigFile.test.ts:112:30)
|
works with single typescript config that imports something:
e2e/__tests__/typescriptConfigFile.test.ts#L38
expect(received).toContain(expected) // indexOf
Expected substring: "PASS __tests__/mytest.alpha.js"
Received string: "Error: Jest: Failed to parse the TypeScript config file /tmp/typescript-config-file/alpha.config.ts
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/tmp/typescript-config-file/common' imported from /tmp/typescript-config-file/alpha.config.ts
at readConfigFileAndSetRootDir (/home/runner/work/jest/jest/packages/jest-config/build/index.js:2252:13)
at async readInitialOptions (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1153:13)
at async readConfig (/home/runner/work/jest/jest/packages/jest-config/build/index.js:924:7)
at async readConfigs (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1174:26)
at async runCLI (/home/runner/work/jest/jest/packages/jest-core/build/index.js:1384:7)
at async Object.run (/home/runner/work/jest/jest/packages/jest-cli/build/index.js:657:9)"
at Object.toContain (e2e/__tests__/typescriptConfigFile.test.ts:38:18)
|
works with multiple typescript configs that import something:
e2e/__tests__/typescriptConfigFile.test.ts#L100
expect(received).toContain(expected) // indexOf
Expected substring: "PASS __tests__/mytest.alpha.js"
Received string: "Error: Jest: Failed to parse the TypeScript config file /tmp/typescript-config-file/alpha.config.ts
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/tmp/typescript-config-file/common' imported from /tmp/typescript-config-file/alpha.config.ts
at readConfigFileAndSetRootDir (/home/runner/work/jest/jest/packages/jest-config/build/index.js:2252:13)
at async readInitialOptions (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1153:13)
at async readConfig (/home/runner/work/jest/jest/packages/jest-config/build/index.js:924:7)
at async Promise.all (index 0)
at async readConfigs (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1190:27)
at async runCLI (/home/runner/work/jest/jest/packages/jest-core/build/index.js:1384:7)
at async Object.run (/home/runner/work/jest/jest/packages/jest-cli/build/index.js:657:9)"
at Object.toContain (e2e/__tests__/typescriptConfigFile.test.ts:100:18)
|
works with single typescript config that does not import anything with project's moduleResolution set to Node16:
e2e/runJest.ts#L283
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at toBe (e2e/runJest.ts:283:22)
at Object.<anonymous> (e2e/__tests__/typescriptConfigFile.test.ts:112:30)
|
works with single typescript config that imports something:
e2e/__tests__/typescriptConfigFile.test.ts#L38
expect(received).toContain(expected) // indexOf
Expected substring: "PASS __tests__/mytest.alpha.js"
Received string: "Error: Jest: Failed to parse the TypeScript config file /tmp/typescript-config-file/alpha.config.ts
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/tmp/typescript-config-file/common' imported from /tmp/typescript-config-file/alpha.config.ts
at readConfigFileAndSetRootDir (/home/runner/work/jest/jest/packages/jest-config/build/index.js:2252:13)
at async readInitialOptions (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1153:13)
at async readConfig (/home/runner/work/jest/jest/packages/jest-config/build/index.js:924:7)
at async readConfigs (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1174:26)
at async runCLI (/home/runner/work/jest/jest/packages/jest-core/build/index.js:1384:7)
at async Object.run (/home/runner/work/jest/jest/packages/jest-cli/build/index.js:657:9)"
at Object.toContain (e2e/__tests__/typescriptConfigFile.test.ts:38:18)
|
works with multiple typescript configs that import something:
e2e/__tests__/typescriptConfigFile.test.ts#L100
expect(received).toContain(expected) // indexOf
Expected substring: "PASS __tests__/mytest.alpha.js"
Received string: "Error: Jest: Failed to parse the TypeScript config file /tmp/typescript-config-file/alpha.config.ts
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/tmp/typescript-config-file/common' imported from /tmp/typescript-config-file/alpha.config.ts
at readConfigFileAndSetRootDir (/home/runner/work/jest/jest/packages/jest-config/build/index.js:2252:13)
at async readInitialOptions (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1153:13)
at async readConfig (/home/runner/work/jest/jest/packages/jest-config/build/index.js:924:7)
at async Promise.all (index 0)
at async readConfigs (/home/runner/work/jest/jest/packages/jest-config/build/index.js:1190:27)
at async runCLI (/home/runner/work/jest/jest/packages/jest-core/build/index.js:1384:7)
at async Object.run (/home/runner/work/jest/jest/packages/jest-cli/build/index.js:657:9)"
at Object.toContain (e2e/__tests__/typescriptConfigFile.test.ts:100:18)
|
works with single typescript config that does not import anything with project's moduleResolution set to Node16:
e2e/runJest.ts#L283
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at toBe (e2e/runJest.ts:283:22)
at Object.<anonymous> (e2e/__tests__/typescriptConfigFile.test.ts:112:30)
|
Ubuntu with shard 3/4 / Node v23.x
The operation was canceled.
|
Windows with shard 2/4 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 2/4 / Node v18.x
The operation was canceled.
|
macOS with shard 1/3 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
macOS with shard 1/3 / Node v16.x
The operation was canceled.
|
Windows with shard 2/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 2/4 / Node LTS using jest-jasmine2
The operation was canceled.
|
Windows with shard 3/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
Windows with shard 3/4 / Node v20.x
The operation was canceled.
|
Windows with shard 1/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-pr/use-node-feature-typescript' exists
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
can press "u" to update snapshots:
e2e/__tests__/watchModeUpdateSnapshot.test.ts#L50
expect(received).toMatchSnapshot(hint)
Snapshot name: `can press "u" to update snapshots: test results 2`
- Snapshot - 0
+ Received + 1
PASS __tests__/bar.spec.js
✓ bar
› 1 snapshot updated.
+ A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
Snapshot Summary
› 1 snapshot updated from 1 test suite.
at Object.toMatchSnapshot (e2e/__tests__/watchModeUpdateSnapshot.test.ts:50:18)
|
on node >=22.6 › invalid JS in jest.config.ts (node with native TS support):
e2e/__tests__/jest.config.ts.test.ts#L153
expect(received).toMatchSnapshot()
Snapshot name: `on node >=22.6 invalid JS in jest.config.ts (node with native TS support) 1`
- Snapshot - 11
+ Received + 0
- Error: Jest: Failed to parse the TypeScript config file <<REPLACED>>
- SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: x Expected ';', got 'string literal (ll break this file yo, 'll break this file yo)'
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
- x Unterminated string constant
- ,----
- 1 | export default i'll break this file yo
- : ^^^^^^^^^^^^^^^^^^^^^^
- `----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:153:7)
|
Windows with shard 1/4 / Node LTS using jest-jasmine2
The operation was canceled.
|
Ubuntu with shard 1/4 / Node v23.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node v23.x
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node v22.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node v22.x
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Node LTS on Ubuntu with coverage (1/4)
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Node LTS on Ubuntu with coverage (1/4)
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node LTS using jest-jasmine2
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node LTS using jest-jasmine2
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 3/4 / Node v22.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
macOS with shard 1/3 / Node LTS using jest-jasmine2
Attempt 1 failed. Reason: Child_process exited with error code 1
|
macOS with shard 1/3 / Node LTS using jest-jasmine2
Attempt 2 failed. Reason: Child_process exited with error code 1
|
macOS with shard 1/3 / Node v22.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 3/4 / Node v23.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 3/4 / Node v23.x
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Windows with shard 1/4 / Node LTS using jest-jasmine2
Attempt 1 failed. Reason: Child_process exited with error code 1
|