Skip to content

Commit efb7d98

Browse files
committed
test: add delay for flaky focus test
1 parent 91e00cf commit efb7d98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/use-swr-focus.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ describe('useSWR - focus', () => {
198198
// trigger revalidation
199199
await focusWindow()
200200
await waitForNextTick()
201+
await act(() => sleep(50))
201202
await screen.findByText('data: 5')
202203
})
203204

0 commit comments

Comments
 (0)