We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45dac6f commit 8837536Copy full SHA for 8837536
1 file changed
packages/query-core/src/__tests__/notifyManager.test.tsx
@@ -39,7 +39,7 @@ describe('notifyManager', () => {
39
})
40
notifyManagerTest.batch(callbackBatchLevel1Spy)
41
42
- await vi.advanceTimersByTimeAsync(20)
+ await vi.advanceTimersByTimeAsync(0)
43
expect(callbackBatchLevel1Spy).toHaveBeenCalledTimes(1)
44
expect(callbackBatchLevel2Spy).toHaveBeenCalledTimes(1)
45
expect(callbackScheduleSpy).toHaveBeenCalledTimes(1)
@@ -57,9 +57,7 @@ describe('notifyManager', () => {
57
58
expect(customCallback).toHaveBeenCalledOnce()
59
60
- // wait until the microtask has run
61
- await new Promise<void>((res) => queueMicrotask(res))
62
-
63
expect(notifySpy).toHaveBeenCalledTimes(1)
64
65
0 commit comments