MCPcopy
hub / github.com/TanStack/query / mockOnlineManagerIsOnline

Function mockOnlineManagerIsOnline

packages/solid-query/src/__tests__/utils.tsx:27–31  ·  view source on GitHub ↗
(
  value: boolean,
)

Source from the content-addressed store, hash-verified

25}
26
27export function mockOnlineManagerIsOnline(
28 value: boolean,
29): MockInstance<() => boolean> {
30 return vi.spyOn(onlineManager, 'isOnline').mockReturnValue(value)
31}
32
33export function setActTimeout(fn: () => void, ms?: number) {
34 return setTimeout(() => {

Callers 2

useQuery.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…