MCPcopy
hub / github.com/TanStack/query / queryCache.test.tsx

File queryCache.test.tsx

packages/query-core/src/__tests__/queryCache.test.tsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
2import { queryKey, sleep } from '@tanstack/query-test-utils'
3import { QueryCache, QueryClient, QueryObserver } from '..'
4

Callers

nothing calls this directly

Calls 14

queryKeyFunction · 0.90
sleepFunction · 0.90
getQueryCacheMethod · 0.80
unsubscribeFunction · 0.50
clearMethod · 0.45
subscribeMethod · 0.45
setQueryDataMethod · 0.45
findMethod · 0.45
prefetchQueryMethod · 0.45
getAllMethod · 0.45
findAllMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected