MCPcopy Create free account
hub / github.com/TanStack/query / usePrefetchQuery.test.tsx

File usePrefetchQuery.test.tsx

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

Source from the content-addressed store, hash-verified

1import { createKey, sleep } from '@tanstack/query-test-utils'
2import { act, fireEvent } from '@testing-library/react'
3import * as React from 'react'
4import { ErrorBoundary } from 'react-error-boundary'

Callers

nothing calls this directly

Calls 6

createKeyFunction · 0.90
sleepFunction · 0.90
renderWithClientFunction · 0.90
clearMethod · 0.45
queryMethod · 0.45
getQueryStateMethod · 0.45

Tested by

no test coverage detected