Skip to content

Commit 40a74cb

Browse files
zhangzhonghesxzz
authored andcommitted
chore: fix test
1 parent 6575a6e commit 40a74cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/runtime-core/__tests__/hmr.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,10 @@ describe('hot module replacement', () => {
222222
test('reload KeepAlive slot in Transition', async () => {
223223
const root = nodeOps.createElement('div')
224224
const childId = 'test-transition-keep-alive-reload'
225-
const unmountSpy = jest.fn()
226-
const mountSpy = jest.fn()
227-
const activeSpy = jest.fn()
228-
const deactiveSpy = jest.fn()
225+
const unmountSpy = vi.fn()
226+
const mountSpy = vi.fn()
227+
const activeSpy = vi.fn()
228+
const deactiveSpy = vi.fn()
229229

230230
const Child: ComponentOptions = {
231231
__hmrId: childId,

0 commit comments

Comments
 (0)