From 40a74cb935f33c62a5487b3cbc3e11ad83886564 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 d7c54cdc27d..25ca1eaa40b 100644 --- a/packages/runtime-core/__tests__/hmr.spec.ts +++ b/packages/runtime-core/__tests__/hmr.spec.ts @@ -222,10 +222,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,