Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

test-setup.ts

13 lines320 Bytes

1import { vi } from 'vitest'
2​
3vi.mock('vue-demi', async () => {
4 const vue = await vi.importActual('vue-demi')
5 return {
6 ...(vue as any),
7 inject: vi.fn(),
8 provide: vi.fn(),
9 onScopeDispose: vi.fn(),
10 getCurrentInstance: vi.fn(() => ({ proxy: {} })),
11 hasInjectionContext: vi.fn(() => true),
12 }
13})