Stringify Errors properly with --json flag #14144
Triggered via pull request
September 29, 2024 02:13
Status
Failure
Total duration
16m 18s
Artifacts
–
nodejs.yml
on: pull_request
prepare-yarn-cache-ubuntu
/
Prepare yarn cache for ubuntu-latest
21s
prepare-yarn-cache-macos
/
Prepare yarn cache for macos-latest
19s
prepare-yarn-cache-windows
/
Prepare yarn cache for windows-latest
54s
TypeScript Compatibility
5m 31s
Typecheck Examples and Tests
3m 58s
Lint
1m 33s
Validate Yarn dependencies and constraints
14s
Node LTS on Ubuntu with leak detection
1m 9s
Matrix: test-coverage
Matrix: test-ubuntu
Matrix: test-macos
Matrix: test-windows
Annotations
31 errors and 7 warnings
Lint:
packages/jest-core/src/lib/__tests__/serializeToJSON.test.ts#L13
Expected object keys to be in ascending order. 'ok' should be before 'species'
|
Lint:
packages/jest-core/src/lib/__tests__/serializeToJSON.test.ts#L14
Expected object keys to be in ascending order. 'i' should be before 'ok'
|
Lint:
packages/jest-core/src/lib/__tests__/serializeToJSON.test.ts#L15
Expected object keys to be in ascending order. 'hopOut' should be before 'i'
|
Lint:
packages/jest-core/src/lib/__tests__/serializeToJSON.test.ts#L19
Expected object keys to be in ascending order. 'chillness' should be before 'hopOut'
|
Lint:
packages/jest-core/src/lib/__tests__/serializeToJSON.test.ts#L21
Expected object keys to be in ascending order. 'flaws' should be before 'weight'
|
Lint:
packages/jest-core/src/lib/__tests__/serializeToJSON.test.ts#L39
Strings must use singlequote
|
Lint:
packages/jest-core/src/lib/__tests__/serializeToJSON.test.ts#L40
Strings must use singlequote
|
Lint:
packages/jest-core/src/lib/__tests__/serializeToJSON.test.ts#L41
Strings must use singlequote
|
Lint:
packages/jest-core/src/lib/serializeToJSON.ts#L16
Argument 'value' should be typed with a non-any type
|
Lint:
packages/jest-core/src/runJest.ts#L38
`./lib/serializeToJSON` import should occur before import of `./runGlobalHook`
|
notify › does not report --notify flag:
e2e/__tests__/detectOpenHandles.ts#L111
expect(received).toBe(expected) // Object.is equality
Expected: ""
Received: "Jest did not exit one second after the test run has completed.·
'This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue."
at Object.toBe (e2e/__tests__/detectOpenHandles.ts:111:27)
|
can press "p" to filter by file name:
e2e/__tests__/watchModePatterns.test.ts#L51
expect(received).toMatchSnapshot(hint)
Snapshot name: `can press "p" to filter by file name: test results 2`
- Snapshot - 0
+ Received + 2
PASS __tests__/bar.spec.js
✓ bar 1
✓ bar 2
+
+ 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.
at Object.toMatchSnapshot (e2e/__tests__/watchModePatterns.test.ts:51:18)
|
globalSetup works with ESM modules:
e2e/Utils.ts#L107
EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\jest-global-setup-rejection'
at rmSync (e2e/Utils.ts:107:8)
at Object.<anonymous> (e2e/__tests__/globalSetup.test.ts:41:10)
|
can press "p" to filter by file name:
e2e/__tests__/watchModePatterns.test.ts#L51
expect(received).toMatchSnapshot(hint)
Snapshot name: `can press "p" to filter by file name: test results 2`
- Snapshot - 0
+ Received + 2
PASS __tests__/bar.spec.js
✓ bar 1
✓ bar 2
+
+ 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.
at Object.toMatchSnapshot (e2e/__tests__/watchModePatterns.test.ts:51:18)
|
can press "p" to filter by file name:
e2e/__tests__/watchModePatterns.test.ts#L51
expect(received).toMatchSnapshot(hint)
Snapshot name: `can press "p" to filter by file name: test results 2`
- Snapshot - 0
+ Received + 2
PASS __tests__/bar.spec.js
✓ bar 1
✓ bar 2
+
+ 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.
at Object.toMatchSnapshot (e2e/__tests__/watchModePatterns.test.ts:51:18)
|
Windows with shard 1/4 / Node LTS using jest-jasmine2
Final attempt failed. Child_process exited with error code 1
|
collects coverage only from multiple specified files:
e2e/__tests__/coverageReport.test.ts#L66
expect(received).toMatchSnapshot()
Snapshot name: `collects coverage only from multiple specified files 1`
- Snapshot - 7
+ Received + 0
- --------------|---------|----------|---------|---------|-------------------
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
- --------------|---------|----------|---------|---------|-------------------
- All files | 100 | 100 | 100 | 100 |
- file.js | 100 | 100 | 100 | 100 |
- otherFile.js | 100 | 100 | 100 | 100 |
- --------------|---------|----------|---------|---------|-------------------
at Object.toMatchSnapshot (e2e/__tests__/coverageReport.test.ts:66:18)
|
collects coverage only from multiple specified files:
e2e/__tests__/coverageReport.test.ts#L66
expect(received).toMatchSnapshot()
Snapshot name: `collects coverage only from multiple specified files 1`
- Snapshot - 7
+ Received + 0
- --------------|---------|----------|---------|---------|-------------------
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
- --------------|---------|----------|---------|---------|-------------------
- All files | 100 | 100 | 100 | 100 |
- file.js | 100 | 100 | 100 | 100 |
- otherFile.js | 100 | 100 | 100 | 100 |
- --------------|---------|----------|---------|---------|-------------------
at Object.toMatchSnapshot (e2e/__tests__/coverageReport.test.ts:66:18)
|
collects coverage from duplicate files avoiding shared cache:
e2e/__tests__/coverageReport.test.ts#L180
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.toBe (e2e/__tests__/coverageReport.test.ts:180:20)
|
collects coverage from duplicate files avoiding shared cache:
e2e/__tests__/coverageReport.test.ts#L179
expect(received).toMatchSnapshot()
Snapshot name: `collects coverage from duplicate files avoiding shared cache 1`
- Snapshot - 9
+ Received + 0
- ---------------|---------|----------|---------|---------|-------------------
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
- ---------------|---------|----------|---------|---------|-------------------
- All files | 100 | 100 | 100 | 100 |
- a | 100 | 100 | 100 | 100 |
- identical.js | 100 | 100 | 100 | 100 |
- b | 100 | 100 | 100 | 100 |
- identical.js | 100 | 100 | 100 | 100 |
- ---------------|---------|----------|---------|---------|-------------------
at Object.toMatchSnapshot (e2e/__tests__/coverageReport.test.ts:179:18)
|
Option randomize › --randomize changes report to output seed:
__tests__/get-seed.test.js#L9
Could not find test summary in the output.
OUTPUT:
FAIL __tests__/get-seed.test.js
● getSeed
expect(received).toBe(expected) // Object.is equality
Expected: 1234
Received: 1587123527
7 |
8 | test('getSeed', () => {
> 9 | expect(jest.getSeed()).toBe(1234);
| ^
10 | });
11 |
at Object.toBe (__tests__/get-seed.test.js:9:26)
PASS __tests__/any-seed.test.js
node:events:497
throw er; // Unhandled 'error' event
^
Error: kill EPERM
at ChildProcess.kill (node:internal/child_process:511:26)
at listOnTimeout (node:internal/timers:594:17)
at process.processTimers (node:internal/timers:529:7)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess.kill (node:internal/child_process:511:12)
[... lines matching original stack trace ...]
at process.processTimers (node:internal/timers:529:7) {
errno: -4048,
code: 'EPERM',
syscall: 'kill'
}
Node.js v22.9.0
at extractSummary (e2e/Utils.ts:245:11)
at Object.<anonymous> (e2e/__tests__/showSeed.test.ts:21:37)
|
Windows with shard 1/4 / Node v22.x
Final attempt failed. Child_process exited with error code 1
|
Node crawler does not pick up symlinked files by default:
e2e/Utils.ts#L107
EBUSY: resource busy or locked, rmdir '\\?\C:\Users\RUNNER~1\AppData\Local\Temp\crawl-symlinks-test'
at rmSync (e2e/Utils.ts:107:8)
at Object.<anonymous> (e2e/__tests__/crawlSymlinks.test.ts:36:10)
|
Should throw if watchman used with haste.enableSymlinks:
e2e/Utils.ts#L107
EBUSY: resource busy or locked, rmdir '\\?\C:\Users\RUNNER~1\AppData\Local\Temp\crawl-symlinks-test'
at rmSync (e2e/Utils.ts:107:8)
at Object.<anonymous> (e2e/__tests__/crawlSymlinks.test.ts:15:10)
|
Should throw if watchman used with haste.enableSymlinks:
e2e/Utils.ts#L107
EBUSY: resource busy or locked, rmdir '\\?\C:\Users\RUNNER~1\AppData\Local\Temp\crawl-symlinks-test'
at rmSync (e2e/Utils.ts:107:8)
at Object.<anonymous> (e2e/__tests__/crawlSymlinks.test.ts:36:10)
|
processChild › handles circular inequality properly:
e2e/__tests__/nonSerializableStructuresInequality.test.ts#L36
Process exited
at waitUntil (e2e/__tests__/nonSerializableStructuresInequality.test.ts:36:9)
at Object.testIn2Workers (e2e/__tests__/nonSerializableStructuresInequality.test.ts:56:35)
|
processChild › handles circular inequality properly:
undefined#L1
Timed out
at timeoutKill (node_modules/execa/lib/kill.js:65:23)
|
processChild › handles circular inequality properly:
undefined#L1
Timed out
at timeoutKill (node_modules/execa/lib/kill.js:65:23)
|
Node crawler does not pick up symlinked files by default:
e2e/Utils.ts#L107
EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\crawl-symlinks-test'
at rmSync (e2e/Utils.ts:107:8)
at Object.<anonymous> (e2e/__tests__/crawlSymlinks.test.ts:36:10)
|
Should throw if watchman used with haste.enableSymlinks:
e2e/Utils.ts#L107
EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\crawl-symlinks-test'
at rmSync (e2e/Utils.ts:107:8)
at Object.<anonymous> (e2e/__tests__/crawlSymlinks.test.ts:15:10)
|
Should throw if watchman used with haste.enableSymlinks:
e2e/Utils.ts#L107
EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\crawl-symlinks-test'
at rmSync (e2e/Utils.ts:107:8)
at Object.<anonymous> (e2e/__tests__/crawlSymlinks.test.ts:36:10)
|
macOS with shard 2/3 / Node LTS using jest-jasmine2
Attempt 1 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
|
Windows with shard 1/4 / Node LTS using jest-jasmine2
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Windows with shard 1/4 / Node v22.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Windows with shard 1/4 / Node v22.x
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Windows with shard 4/4 / Node v18.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Windows with shard 4/4 / Node v20.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|