@tanstack/vue-query
Version:
Hooks for managing, caching and syncing asynchronous and remote data in Vue
10 lines (7 loc) • 313 B
text/typescript
import { vi } from 'vitest'
import type { Mock } from 'vitest'
const { useBaseQuery: originImpl, unrefQueryArgs: originalParse } =
(await vi.importActual('../useBaseQuery')) as any
export const useBaseQuery: Mock<(...args: Array<any>) => any> =
vi.fn(originImpl)
export const unrefQueryArgs = originalParse