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

File infiniteQueryBehavior.test.tsx

packages/query-core/src/__tests__/infiniteQueryBehavior.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 { CancelledError, InfiniteQueryObserver, QueryClient } from '..'
4import type { InfiniteData, InfiniteQueryObserverResult, QueryCache } from '..'

Callers

nothing calls this directly

Calls 15

queryKeyFunction · 0.90
sleepFunction · 0.90
getQueryCacheMethod · 0.80
fetchNextPageMethod · 0.80
fetchPreviousPageMethod · 0.80
refetchMethod · 0.80
getCurrentQueryMethod · 0.80
cancelMethod · 0.80
fetchDataFunction · 0.70
fnFunction · 0.70
unsubscribeFunction · 0.50
mountMethod · 0.45

Tested by

no test coverage detected