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 43c43a3 commit aba22c0Copy full SHA for aba22c0
src/core/tests/query.test.tsx
@@ -505,7 +505,7 @@ describe('query', () => {
505
const unsubscribe = observer.subscribe()
506
expect(queryCache.find(key)).toBeDefined()
507
unsubscribe()
508
- expect(queryCache.find(key)).toBeUndefined()
+ await waitFor(() => expect(queryCache.find(key)).toBeUndefined())
509
})
510
511
test('should be garbage collected later when unsubscribed and query is fetching', async () => {
0 commit comments