Skip to content

Commit 9e3747c

Browse files
committed
test: reveal issue with the test generally
1 parent 9e5cf59 commit 9e3747c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/cleanup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test('cleanup waits for queued microtasks during unmount sequence', async () =>
3131
const spy = jest.fn()
3232

3333
const Test = () => {
34-
React.useEffect(() => () => setImmediate(spy))
34+
React.useEffect(() => () => setTimeout(spy, 200))
3535

3636
return null
3737
}

0 commit comments

Comments
 (0)