(withUnmountHook = false)
| 26 | const testIf = (condition: boolean) => (condition ? test : test.skip) |
| 27 | |
| 28 | function getAppMock(withUnmountHook = false): TestApp { |
| 29 | const mock = { |
| 30 | provide: vi.fn(), |
| 31 | unmount: vi.fn(), |
| 32 | onUnmount: withUnmountHook |
| 33 | ? vi.fn((u: UnmountCallback) => { |
| 34 | mock._unmount = u |
| 35 | }) |
| 36 | : undefined, |
| 37 | mixin: (m: ComponentOptions) => { |
| 38 | mock._mixin = m |
| 39 | }, |
| 40 | } as unknown as TestApp |
| 41 | |
| 42 | return mock |
| 43 | } |
| 44 | |
| 45 | describe('VueQueryPlugin', () => { |
| 46 | beforeEach(() => { |
no outgoing calls
no test coverage detected
searching dependent graphs…