浏览代码

chore: fix jest reference in merged test case

Evan You 3 年之前
父节点
当前提交
f19f803ea8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/runtime-core/__tests__/apiWatch.spec.ts

+ 1 - 1
packages/runtime-core/__tests__/apiWatch.spec.ts

@@ -930,7 +930,7 @@ describe('api: watch', () => {
   test('should force trigger on triggerRef with toRef from reactive', async () => {
     const foo = reactive({ bar: 1 })
     const bar = toRef(foo, 'bar')
-    const spy = jest.fn()
+    const spy = vi.fn()
 
     watchEffect(() => {
       bar.value