diff --git a/packages/runtime-core/__tests__/hmr.spec.ts b/packages/runtime-core/__tests__/hmr.spec.ts index d9ed549575f..bcce4e72f78 100644 --- a/packages/runtime-core/__tests__/hmr.spec.ts +++ b/packages/runtime-core/__tests__/hmr.spec.ts @@ -223,10 +223,10 @@ describe('hot module replacement', () => { test('reload KeepAlive slot in Transition', async () => { const root = nodeOps.createElement('div') const childId = 'test-transition-keep-alive-reload' - const unmountSpy = jest.fn() - const mountSpy = jest.fn() - const activeSpy = jest.fn() - const deactiveSpy = jest.fn() + const unmountSpy = vi.fn() + const mountSpy = vi.fn() + const activeSpy = vi.fn() + const deactiveSpy = vi.fn() const Child: ComponentOptions = { __hmrId: childId,