Open History to see the last commit
1import { vi } from 'vitest'
2import type { Mock } from 'vitest'
3β
4const { useBaseQuery: originImpl, unrefQueryArgs: originalParse } =
5 // @ts-expect-error - vitest uses esmodules; tsconfig is not set to use them
6 (await vi.importActual('../useBaseQuery')) as any
7β
8export const useBaseQuery: Mock<Array<any>, any> = vi.fn(originImpl)
9export const unrefQueryArgs = originalParse