fix: update the return type of createCacheKey
#13838
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
36s
TypeScript Compatibility
5m 25s
Typecheck Examples and Tests
3m 53s
Lint
1m 49s
Validate Yarn dependencies and constraints
18s
Node LTS on Ubuntu with leak detection
1m 10s
Matrix: test-coverage
Matrix: test-ubuntu
Matrix: test-macos
Matrix: test-windows
Annotations
9 errors and 5 warnings
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)
|
collects coverage only from specified file:
e2e/__tests__/coverageReport.test.ts#L49
expect(received).toMatchSnapshot()
Snapshot name: `collects coverage only from specified file 1`
- Snapshot - 6
+ Received + 0
- ----------|---------|----------|---------|---------|-------------------
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
- ----------|---------|----------|---------|---------|-------------------
- All files | 100 | 100 | 100 | 100 |
- file.js | 100 | 100 | 100 | 100 |
- ----------|---------|----------|---------|---------|-------------------
at Object.toMatchSnapshot (e2e/__tests__/coverageReport.test.ts:49:18)
|
can press "p" to filter by file name:
e2e/__tests__/watchModePatterns.test.ts#L49
expect(received).toHaveLength(expected)
Expected length: 2
Received length: 0
Received array: []
at Object.toHaveLength (e2e/__tests__/watchModePatterns.test.ts:49:19)
|
can press "p" to filter by file name:
e2e/__tests__/watchModePatterns.test.ts#L48
expect(received).toMatchSnapshot()
Snapshot name: `can press "p" to filter by file name 1`
- Snapshot - 39
+ Received + 0
- <hideCursor>
- <clearTerminal>
- Pattern Mode Usage
- › Press Esc to exit pattern mode.
- › Press Enter to filter by a filenames regex pattern.
-
- <showCursor>
- <eraseLine>
- <moveCursorToColumn1>
- <eraseScreenDown>
- pattern ›
- <saveCursorPosition>
- <moveCursorToRow6Column12>
- <restoreCursorPosition>
- <eraseLine>
- <moveCursorToColumn1>
- <eraseScreenDown>
- pattern › b
- <saveCursorPosition>
- <moveCursorToRow6Column13>
- <restoreCursorPosition>
- <eraseLine>
- <moveCursorToColumn1>
- <eraseScreenDown>
- pattern › ba
- <saveCursorPosition>
- <moveCursorToRow6Column14>
- <restoreCursorPosition>
- <eraseLine>
- <moveCursorToColumn1>
- <eraseScreenDown>
- pattern › bar
- <saveCursorPosition>
- <moveCursorToRow6Column15>
- <restoreCursorPosition>
-
- <moveCursorDownBy1Row>
- <eraseScreenDown>
-
at Object.toMatchSnapshot (e2e/__tests__/watchModePatterns.test.ts:48:18)
|
should call globalSetup function of multiple projects:
node:internal/child_process#L512
Can't parse JSON.
ERROR: SyntaxError Unexpected end of JSON input
STDOUT:
STDERR: PASS project-1 project-1/setup1.test.js
PASS project-2 project-2/setup2.test.js
node:events:497
throw er; // Unhandled 'error' event
^
Error: kill EPERM
at ChildProcess.kill (node:internal/child_process:512:26)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess.kill (node:internal/child_process:512:12)
[... lines matching original stack trace ...]
at process.processTimers (node:internal/timers:514:7) {
errno: -4048,
code: 'EPERM',
syscall: 'kill'
}
Node.js v21.7.3
at json (e2e/runJest.ts:157:11)
at Object.<anonymous> (e2e/__tests__/globalSetup.test.ts:98:29)
|
collects coverage only from specified file:
e2e/__tests__/coverageReport.test.ts#L49
expect(received).toMatchSnapshot()
Snapshot name: `collects coverage only from specified file 1`
- Snapshot - 6
+ Received + 0
- ----------|---------|----------|---------|---------|-------------------
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
- ----------|---------|----------|---------|---------|-------------------
- All files | 100 | 100 | 100 | 100 |
- file.js | 100 | 100 | 100 | 100 |
- ----------|---------|----------|---------|---------|-------------------
at Object.toMatchSnapshot (e2e/__tests__/coverageReport.test.ts:49:18)
|
Option randomize › --randomize changes report to output seed:
__tests__/get-seed.test.js#L9
Could not find test summary in the output.
OUTPUT:
PASS __tests__/any-seed.test.js
FAIL __tests__/get-seed.test.js
● getSeed
expect(received).toBe(expected) // Object.is equality
Expected: 1234
Received: 932209181
7 |
8 | test('getSeed', () => {
> 9 | expect(jest.getSeed()).toBe(1234);
| ^
10 | });
11 |
at Object.toBe (__tests__/get-seed.test.js:9:26)
node:events:497
throw er; // Unhandled 'error' event
^
Error: kill EPERM
at ChildProcess.kill (node:internal/child_process:512:26)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess.kill (node:internal/child_process:512:12)
[... lines matching original stack trace ...]
at process.processTimers (node:internal/timers:514:7) {
errno: -4048,
code: 'EPERM',
syscall: 'kill'
}
Node.js v21.7.3
at extractSummary (e2e/Utils.ts:245:11)
at Object.<anonymous> (e2e/__tests__/showSeed.test.ts:21:37)
|
Windows with shard 1/4 / Node v21.x
Final attempt failed. Child_process exited with error code 1
|
can press "f" to run only failed tests:
e2e/__tests__/watchModeOnlyFailed.test.ts#L43
expect(received).toHaveLength(expected)
Expected length: 2
Received length: 0
Received array: []
at Object.toHaveLength (e2e/__tests__/watchModeOnlyFailed.test.ts:43:19)
|
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 v22.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Windows with shard 1/4 / Node v21.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Windows with shard 1/4 / Node v21.x
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Windows with shard 2/4 / Node v21.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|