feat(jest-fake-timers): Add feature to enable automatically advancing… #14128
Annotations
4 errors
|
run tests:
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)
|
run tests:
e2e/__tests__/watchModePatterns.test.ts#L70
expect(received).toMatchSnapshot(hint)
Snapshot name: `can press "t" to filter by test name: test results 1`
- Snapshot - 0
+ Received + 1
PASS __tests__/bar.spec.js
PASS __tests__/foo.spec.js
+ 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:70:18)
|
run tests
The operation was canceled.
|
Loading