feat(config): if process.features.typescript
is set, load jest.config.ts
without external loader
#14402
Annotations
4 errors and 1 warning
|
run tests using jest-jasmine:
e2e/__tests__/jest.config.ts.test.ts#L148
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 /Users/tronic/tmp/jest/e2e/jest-config-ts/jest.config.ts
- 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:148:7)
|
run tests using jest-jasmine:
e2e/__tests__/jest.config.ts.test.ts#L148
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 /Users/tronic/tmp/jest/e2e/jest-config-ts/jest.config.ts
- 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:148:7)
|
run tests using jest-jasmine
The operation was canceled.
|
run tests using jest-jasmine
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Loading