MCPcopy Index your code
hub / github.com/TanStack/query / mockOnlineManagerIsOnline

Function mockOnlineManagerIsOnline

packages/query-core/src/__tests__/utils.ts:7–11  ·  view source on GitHub ↗
(
  value: boolean,
)

Source from the content-addressed store, hash-verified

5import type { MutationOptions, QueryClient } from '..'
6
7export function mockOnlineManagerIsOnline(
8 value: boolean,
9): MockInstance<() => boolean> {
10 return vi.spyOn(onlineManager, 'isOnline').mockReturnValue(value)
11}
12
13export function executeMutation<TVariables>(
14 queryClient: QueryClient,

Callers 3

query.test.tsxFile · 0.90
hydration.test.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…