feat(config): if process.features.typescript
is set, load jest.config.ts
without external loader
#14407
Annotations
9 errors and 1 warning
|
run tests:
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 C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\typescript-config-file\\alpha.config.ts
TSError: ⨯ Unable to compile TypeScript:
alpha.config.ts(1,25): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.··
at readConfigFileAndSetRootDir (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:2252:13)
at async readInitialOptions (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:1153:13)
at async readConfig (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:924:7)
at async readConfigs (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:1174:26)
at async runCLI (D:\\a\\jest\\jest\\packages\\jest-core\\build\\index.js:1384:7)
at async Object.run (D:\\a\\jest\\jest\\packages\\jest-cli\\build\\index.js:657:9)"
at Object.toContain (e2e/__tests__/typescriptConfigFile.test.ts:38:18)
|
run tests:
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 C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\typescript-config-file\\alpha.config.ts
TSError: ⨯ Unable to compile TypeScript:
alpha.config.ts(1,25): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.··
at readConfigFileAndSetRootDir (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:2252:13)
at async readInitialOptions (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:1153:13)
at async readConfig (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:924:7)
at async Promise.all (index 0)
at async readConfigs (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:1190:27)
at async runCLI (D:\\a\\jest\\jest\\packages\\jest-core\\build\\index.js:1384:7)
at async Object.run (D:\\a\\jest\\jest\\packages\\jest-cli\\build\\index.js:657:9)"
at Object.toContain (e2e/__tests__/typescriptConfigFile.test.ts:100:18)
|
run tests:
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)
|
run tests:
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
@@ -92,16 +92,16 @@
END: "seven"
at log (__tests__/concurrent.test.js:15:11)
console.log
- END: "ten"
+ END: "eight"
at log (__tests__/concurrent.test.js:15:11)
console.log
- END: "eight"
+ END: "ten"
at log (__tests__/concurrent.test.js:15:11)
console.log
afterAll
at Object.toMatchSnapshot (e2e/__tests__/circusConcurrent.test.ts:28:20)
|
run tests:
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 C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\typescript-config-file\\alpha.config.ts
TSError: ⨯ Unable to compile TypeScript:
alpha.config.ts(1,25): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.··
at readConfigFileAndSetRootDir (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:2252:13)
at async readInitialOptions (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:1153:13)
at async readConfig (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:924:7)
at async readConfigs (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:1174:26)
at async runCLI (D:\\a\\jest\\jest\\packages\\jest-core\\build\\index.js:1384:7)
at async Object.run (D:\\a\\jest\\jest\\packages\\jest-cli\\build\\index.js:657:9)"
at Object.toContain (e2e/__tests__/typescriptConfigFile.test.ts:38:18)
|
run tests:
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 C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\typescript-config-file\\alpha.config.ts
TSError: ⨯ Unable to compile TypeScript:
alpha.config.ts(1,25): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.··
at readConfigFileAndSetRootDir (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:2252:13)
at async readInitialOptions (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:1153:13)
at async readConfig (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:924:7)
at async Promise.all (index 0)
at async readConfigs (D:\\a\\jest\\jest\\packages\\jest-config\\build\\index.js:1190:27)
at async runCLI (D:\\a\\jest\\jest\\packages\\jest-core\\build\\index.js:1384:7)
at async Object.run (D:\\a\\jest\\jest\\packages\\jest-cli\\build\\index.js:657:9)"
at Object.toContain (e2e/__tests__/typescriptConfigFile.test.ts:100:18)
|
run tests:
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)
|
run tests
The operation was canceled.
|
run tests
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Loading