@tanstack/vue-query
Version:
Hooks for managing, caching and syncing asynchronous and remote data in Vue
10 lines (7 loc) • 377 B
text/typescript
import { vi } from 'vitest'
import type { Mock } from 'vitest'
const { useBaseQuery: originImpl, unrefQueryArgs: originalParse } =
// @ts-expect-error - vitest uses esmodules; tsconfig is not set to use them
(await vi.importActual('../useBaseQuery')) as any
export const useBaseQuery: Mock<Array<any>, any> = vi.fn(originImpl)
export const unrefQueryArgs = originalParse