From 535711a1671eae573e6487aba0ec8a01dd01cc3e Mon Sep 17 00:00:00 2001 From: Rairn <958414905@qq.com> Date: Sat, 4 Feb 2023 15:20:28 +0800 Subject: [PATCH] chore: fix test --- packages/runtime-core/__tests__/hmr.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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,