We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6346f7 commit 5cda1a3Copy full SHA for 5cda1a3
src/__tests__/fake-timers.js
@@ -60,9 +60,9 @@ test('times out after 1000ms by default', async () => {
60
jest.useRealTimers()
61
// NOTE: this assertion ensures that the timeout runs in the declared (fake) clock
62
// while in real time the time was only a fraction since the real clock is only bound by the CPU.
63
- // So 20ms is really just an approximation on how long the CPU needs to execute our code.
+ // So 80ms is really just an approximation on how long the CPU needs to execute our code.
64
// If people want to timeout in real time they should rely on their test runners.
65
- expect(performance.now() - startReal).toBeLessThanOrEqual(20)
+ expect(performance.now() - startReal).toBeLessThanOrEqual(80)
66
})
67
68
test('recursive timers do not cause issues', async () => {
0 commit comments