feat(config): if process.features.typescript
is set, load jest.config.ts
without external loader
#14402
Annotations
5 errors
|
run tests:
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)
|
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.<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)
|
run tests:
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 - 1
+ Received + 1
@@ -1,6 +1,6 @@
- "Error: Jest: Failed to parse the TypeScript config file /Users/tronic/tmp/jest/e2e/jest-config-ts/jest.config.ts
+ "Error: Jest: Failed to parse the TypeScript config file D:\a\jest\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
: ^^^^^^^^^^^^^^^^^^^^^^
`----
at Object.toMatchSnapshot (e2e/__tests__/jest.config.ts.test.ts:148:7)
|
run tests
The operation was canceled.
|
Loading