feat(jest-fake-timers): Add feature to enable automatically advancing… #14125
Triggered via pull request
September 23, 2024 21:29
Status
Cancelled
Total duration
6m 56s
Artifacts
–
nodejs.yml
on: pull_request
prepare-yarn-cache-ubuntu
/
Prepare yarn cache for ubuntu-latest
13s
prepare-yarn-cache-macos
/
Prepare yarn cache for macos-latest
23s
prepare-yarn-cache-windows
/
Prepare yarn cache for windows-latest
46s
TypeScript Compatibility
3m 21s
Typecheck Examples and Tests
3m 9s
Lint
1m 52s
Validate Yarn dependencies and constraints
15s
Node LTS on Ubuntu with leak detection
1m 10s
Matrix: test-coverage
Matrix: test-ubuntu
Matrix: test-macos
Matrix: test-windows
Annotations
83 errors and 13 warnings
Typecheck Examples and Tests:
packages/jest-runtime/src/index.ts#L2299
Property 'setAdvanceTimersAutomatically' is missing in type '{ advanceTimersByTime: (msToRun: number) => void; advanceTimersByTimeAsync: (msToRun: number) => Promise<void>; advanceTimersToNextFrame: () => void; advanceTimersToNextTimer: (steps: number | undefined) => void; ... 44 more ...; useRealTimers: () => Jest; }' but required in type 'Jest'.
|
Typecheck Examples and Tests
Process completed with exit code 1.
|
TypeScript Compatibility:
packages/jest-runtime/src/index.ts#L2299
Property 'setAdvanceTimersAutomatically' is missing in type '{ advanceTimersByTime: (msToRun: number) => void; advanceTimersByTimeAsync: (msToRun: number) => Promise<void>; advanceTimersToNextFrame: () => void; advanceTimersToNextTimer: (steps: number | undefined) => void; ... 44 more ...; useRealTimers: () => Jest; }' but required in type 'Jest'.
|
TypeScript Compatibility
Process completed with exit code 1.
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
Ubuntu with shard 1/4 / Node v22.x
Final attempt failed. Child_process exited with error code 1
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
Ubuntu with shard 1/4 / Node v20.x
Final attempt failed. Child_process exited with error code 1
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
Ubuntu with shard 1/4 / Node v18.x
Final attempt failed. Child_process exited with error code 1
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
Node LTS on Ubuntu with coverage (1/4)
Final attempt failed. Child_process exited with error code 1
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
Ubuntu with shard 1/4 / Node v16.x
Final attempt failed. Child_process exited with error code 1
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
Ubuntu with shard 1/4 / Node LTS using jest-jasmine2
Final attempt failed. Child_process exited with error code 1
|
macOS with shard 2/3 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 1/3 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 1/3 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 1/3 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 1/3 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 3/3 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 1/3 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 3/3 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 2/3 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 3/3 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 3/3 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 3/3 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 3/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 4/4 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 4/4 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 4/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 4/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 4/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 1/4 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 1/4 / Node v16.x
The operation was canceled.
|
Windows with shard 2/4 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 2/4 / Node v18.x
The operation was canceled.
|
Windows with shard 2/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 2/4 / Node v20.x
The operation was canceled.
|
Windows with shard 3/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 3/4 / Node LTS using jest-jasmine2
The operation was canceled.
|
Windows with shard 1/4 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 1/4 / Node v18.x
The operation was canceled.
|
Windows with shard 3/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 3/4 / Node v20.x
The operation was canceled.
|
Windows with shard 2/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 2/4 / Node LTS using jest-jasmine2
The operation was canceled.
|
macOS with shard 2/3 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
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)
|
macOS with shard 2/3 / Node LTS using jest-jasmine2
The operation was canceled.
|
Windows with shard 2/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 2/4 / Node v22.x
The operation was canceled.
|
macOS with shard 2/3 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 2/3 / Node v20.x
The operation was canceled.
|
Windows with shard 1/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 1/4 / Node v22.x
The operation was canceled.
|
Windows with shard 1/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 1/4 / Node v20.x
The operation was canceled.
|
Windows with shard 3/4 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 3/4 / Node v18.x
The operation was canceled.
|
Windows with shard 1/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
`@sinonjs/fake-timers` integration › overrides custom global config:
undefined#L1
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,10 +1,10 @@
Object {
"advanceTimeDelta": undefined,
"loopLimit": 1000,
"now": 123456,
- "shouldAdvanceTime": false,
+ "shouldAdvanceTime": true,
"shouldClearNativeTimers": true,
"toFake": Array [
"Date",
"cancelAnimationFrame",
"clearImmediate",,
Number of calls: 1
at Object.toHaveBeenCalledWith (packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts:169:25)
|
can press "u" to update snapshots:
e2e/__tests__/watchModeUpdateSnapshot.test.ts#L50
expect(received).toMatchSnapshot(hint)
Snapshot name: `can press "u" to update snapshots: test results 1`
- Snapshot - 0
+ Received + 1
@@ -14,7 +14,8 @@
| ^
at Object.toMatchSnapshot (__tests__/bar.spec.js:1:35)
› 1 snapshot failed.
+ 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.
Snapshot Summary
› 1 snapshot failed from 1 test suite. Inspect your code changes or press `u` to update them."
at Object.toMatchSnapshot (e2e/__tests__/watchModeUpdateSnapshot.test.ts:50:18)
|
Windows with shard 1/4 / Node LTS using jest-jasmine2
The operation was canceled.
|
Windows with shard 2/4 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 2/4 / Node v16.x
The operation was canceled.
|
Windows with shard 3/4 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
Windows with shard 3/4 / Node v16.x
The operation was canceled.
|
macOS with shard 2/3 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
|
macOS with shard 2/3 / Node v22.x
The operation was canceled.
|
Ubuntu with shard 1/4 / Node v22.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node v22.x
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node v20.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node v20.x
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node v18.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node v18.x
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Node LTS on Ubuntu with coverage (1/4)
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Node LTS on Ubuntu with coverage (1/4)
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node v16.x
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node v16.x
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node LTS using jest-jasmine2
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Ubuntu with shard 1/4 / Node LTS using jest-jasmine2
Attempt 2 failed. Reason: Child_process exited with error code 1
|
macOS with shard 2/3 / Node LTS using jest-jasmine2
Attempt 1 failed. Reason: Child_process exited with error code 1
|