Skip to content

Commit 5cda1a3

Browse files
feat: add config
1 parent e6346f7 commit 5cda1a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/__tests__/fake-timers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ test('times out after 1000ms by default', async () => {
6060
jest.useRealTimers()
6161
// NOTE: this assertion ensures that the timeout runs in the declared (fake) clock
6262
// 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.
63+
// So 80ms is really just an approximation on how long the CPU needs to execute our code.
6464
// If people want to timeout in real time they should rely on their test runners.
65-
expect(performance.now() - startReal).toBeLessThanOrEqual(20)
65+
expect(performance.now() - startReal).toBeLessThanOrEqual(80)
6666
})
6767

6868
test('recursive timers do not cause issues', async () => {

0 commit comments

Comments
 (0)