feat(jest-fake-timers): Add feature to enable automatically advancing… #14125
Annotations
4 errors
|
run tests using jest-jasmine:
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 using jest-jasmine:
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)
|
run tests using jest-jasmine
The operation was canceled.
|
Loading