feat(config): if process.features.typescript
is set, load jest.config.ts
without external loader
#14404
Annotations
7 errors and 2 warnings
run tests:
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.log (__tests__/a-giraffe.js:3:27)
+ at Object.<anonymous> (__tests__/a-giraffe.js:3:27)
↵
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:74:62)
|
run tests:
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)
|
run tests:
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.log (__tests__/a-giraffe.js:3:27)
+ at Object.<anonymous> (__tests__/a-giraffe.js:3:27)
↵
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:74:62)
|
run tests:
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)
|
run tests:
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.log (__tests__/a-giraffe.js:3:27)
+ at Object.<anonymous> (__tests__/a-giraffe.js:3:27)
↵
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:74:62)
|
run tests:
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)
|
run tests
Final attempt failed. Child_process exited with error code 1
|
run tests
Attempt 1 failed. Reason: Child_process exited with error code 1
|
run tests
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Loading