Skip to content

feat(jest-fake-timers): Add feature to enable automatically advancing… #14117

feat(jest-fake-timers): Add feature to enable automatically advancing…

feat(jest-fake-timers): Add feature to enable automatically advancing… #14117

Triggered via pull request September 23, 2024 21:17
Status Cancelled
Total duration 4m 1s
Artifacts

nodejs.yml

on: pull_request
prepare-yarn-cache-ubuntu  /  Prepare yarn cache for ubuntu-latest
13s
prepare-yarn-cache-ubuntu / Prepare yarn cache for ubuntu-latest
prepare-yarn-cache-macos  /  Prepare yarn cache for macos-latest
22s
prepare-yarn-cache-macos / Prepare yarn cache for macos-latest
prepare-yarn-cache-windows  /  Prepare yarn cache for windows-latest
42s
prepare-yarn-cache-windows / Prepare yarn cache for windows-latest
TypeScript Compatibility
3m 27s
TypeScript Compatibility
Typecheck Examples and Tests
3m 7s
Typecheck Examples and Tests
Lint
1m 36s
Lint
Validate Yarn dependencies and constraints
18s
Validate Yarn dependencies and constraints
Node LTS on Ubuntu with leak detection
1m 9s
Node LTS on Ubuntu with leak detection
Matrix: test-coverage
Matrix: test-ubuntu
Matrix: test-macos
Matrix: test-windows
Fit to window
Zoom out
Zoom in

Annotations

94 errors and 7 warnings
Lint: packages/jest-fake-timers/src/__tests__/modernFakeTimers.test.ts#L1263
Expected object keys to be in ascending order. 'clearInterval' should be before 'setInterval'
Lint: packages/jest-fake-timers/src/__tests__/modernFakeTimers.test.ts#L1266
Expected object keys to be in ascending order. 'console' should be before 'setTimeout'
Lint: packages/jest-fake-timers/src/modernFakeTimers.ts#L150
Replace `fakeTimersConfig·&&·typeof·fakeTimersConfig.advanceTimers·===·'object'` with `⏎······fakeTimersConfig·&&⏎······typeof·fakeTimersConfig.advanceTimers·===·'object'⏎····`
Lint: packages/jest-fake-timers/src/modernFakeTimers.ts#L155
Replace `|` with `·|·`
Lint: packages/jest-fake-timers/src/modernFakeTimers.ts#L250
Replace `|` with `·|·`
Lint: packages/jest-fake-timers/src/modernFakeTimers.ts#L251
Type boolean trivially inferred from a boolean literal, remove type annotation
Lint: packages/jest-fake-timers/src/modernFakeTimers.ts#L258
Replace `typeof·advanceTimersConfig·===·'object'·&&·advanceTimersConfig.mode·===·'interval'` with `⏎······typeof·advanceTimersConfig·===·'object'·&&⏎······advanceTimersConfig.mode·===·'interval'⏎····`
Lint: packages/jest-fake-timers/src/modernFakeTimers.ts#L277
Expected property shorthand
Lint: packages/jest-runtime/src/index.ts#L2349
Delete `⏎`
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.
macOS with shard 1/3 / Node v22.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 v20.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
Ubuntu with shard 1/4 / Node v22.x
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)
`@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
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 v18.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
macOS with shard 2/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 3/3 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
macOS with shard 2/3 / Node LTS using jest-jasmine2
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 3/3 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Windows with shard 2/4 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Windows with shard 1/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
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 v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Windows with shard 2/4 / Node v18.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 v18.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Windows with shard 1/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
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 1/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
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 v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Windows with shard 3/4 / Node v18.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 v20.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 3/4 / Node v22.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
Ubuntu with shard 1/4 / Node v18.x
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)
`@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)
Windows with shard 3/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 1/4 / Node v18.x
The operation was canceled.
Windows with shard 4/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 4/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 4/4 / Node v22.x
The operation was canceled.
Ubuntu with shard 1/4 / Node v20.x
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)
`@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
The operation was canceled.
Ubuntu with shard 1/4 / Node v16.x
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)
`@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
The operation was canceled.
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 LTS using jest-jasmine2
The operation was canceled.
Ubuntu 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)
`@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
The operation was canceled.
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 v16.x
The operation was canceled.
Ubuntu with shard 3/4 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 3/4 / Node v18.x
The operation was canceled.
Ubuntu with shard 4/4 / Node v18.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 4/4 / Node v18.x
The operation was canceled.
Ubuntu with shard 3/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 3/4 / Node v20.x
The operation was canceled.
Ubuntu with shard 3/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 3/4 / Node v22.x
The operation was canceled.
Ubuntu with shard 2/4 / Node v22.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 2/4 / Node v22.x
The operation was canceled.
Ubuntu with shard 4/4 / Node LTS using jest-jasmine2
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 4/4 / Node LTS using jest-jasmine2
The operation was canceled.
Node LTS on Ubuntu with coverage (1/4)
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)
`@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)
The operation was canceled.
TypeScript Compatibility
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
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
The operation was canceled.
Ubuntu with shard 4/4 / Node v20.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 4/4 / Node v20.x
The operation was canceled.
Ubuntu with shard 4/4 / Node v16.x
Canceling since a higher priority waiting request for 'Node CI-autoAdvance' exists
Ubuntu with shard 4/4 / Node v16.x
The operation was canceled.
Lint: packages/jest-fake-timers/src/modernFakeTimers.ts#L160
Unexpected console statement
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 v18.x
Attempt 1 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 v16.x
Attempt 1 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
Node LTS on Ubuntu with coverage (1/4)
Attempt 1 failed. Reason: Child_process exited with error code 1