chore: migrate expect
and @jest/expect
type tests to TSTyche
#13437
nodejs.yml
on: pull_request
prepare-yarn-cache-ubuntu
/
Prepare yarn cache for ubuntu-latest
17s
prepare-yarn-cache-macos
/
Prepare yarn cache for macos-latest
28s
prepare-yarn-cache-windows
/
Prepare yarn cache for windows-latest
36s
TypeScript Compatibility
5m 51s
Typecheck Examples and Tests
3m 50s
Lint
1m 58s
Validate Yarn dependencies and constraints
14s
Node LTS on Ubuntu with leak detection
1m 14s
Matrix: test-coverage
Matrix: test-ubuntu
Matrix: test-macos
Matrix: test-windows
Annotations
4 errors and 5 warnings
Option showSeed › --showSeed 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: -1970354630
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.6.2
at extractSummary (e2e/Utils.ts:243:11)
at Object.<anonymous> (e2e/__tests__/showSeed.test.ts:21:37)
|
--findRelatedTests flag › coverage configuration is applied correctly:
node:internal/child_process#L512
Could not find test summary in the output.
OUTPUT:
PASS __tests__/a.test.js
✓ a (5 ms)
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 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 processTimers (node:internal/timers:514:7) {
errno: -4048,
code: 'EPERM',
syscall: 'kill'
}
Node.js v21.6.2
at extractSummary (e2e/Utils.ts:243:11)
at Object.<anonymous> (e2e/__tests__/findRelatedFiles.test.ts:244:43)
|
Windows with shard 3/4 / Node v21.x
Final attempt failed. Child_process exited with error code 1
|
exceeds the timeout:
e2e/__tests__/timeouts.test.ts#L38
expect(received).toMatch(expected)
Expected pattern: /(jest\.setTimeout\(20\))/
Received string: "PASS __tests__/a-banana.js
✓ banana"
at Object.toMatch (e2e/__tests__/timeouts.test.ts:38:16)
|
Windows with shard 1/4 / Node v21.x
Attempt 1 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
|
Windows with shard 3/4 / Node v21.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Windows with shard 3/4 / Node v21.x
Attempt 2 failed. Reason: Child_process exited with error code 1
|
macOS with shard 3/3 / Node v20.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|