Open History to see the last commit
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})