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 0fa161e commit 16b2af5Copy full SHA for 16b2af5
src/core/tests/query.test.tsx
@@ -528,7 +528,7 @@ describe('query', () => {
528
expect(queryCache.find(key)).toBeDefined()
529
await sleep(10)
530
// should be removed after an additional staleTime wait
531
- expect(queryCache.find(key)).toBeUndefined()
+ await waitFor(() => expect(queryCache.find(key)).toBeUndefined())
532
})
533
534
test('should not be garbage collected unless there are no subscribers', async () => {
0 commit comments