diff --git a/package.json b/package.json index f34b8e0ad53..9fc45db9652 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,6 @@ "build:types": "rimraf temp && tsc --declaration --emitDeclarationOnly --outDir temp && api-extractor run && api-extractor run -c packages/compiler-sfc/api-extractor.json", "test": "npm run ts-check && npm run test:types && npm run test:unit && npm run test:e2e && npm run test:ssr && npm run test:sfc", "test:unit": "vitest run test/unit", - "test:watch": "vitest run test/unit/features/v3/apiWatch.spec.ts", "test:ssr": "npm run build:ssr && vitest run server-renderer", "test:sfc": "vitest run compiler-sfc", "test:e2e": "npm run build -- full-prod,server-renderer-basic && vitest run test/e2e", diff --git a/test/unit/features/v3/apiWatch.spec.ts b/test/unit/features/v3/apiWatch.spec.ts index 8d998694ef1..e34694a0baa 100644 --- a/test/unit/features/v3/apiWatch.spec.ts +++ b/test/unit/features/v3/apiWatch.spec.ts @@ -1205,7 +1205,7 @@ describe('api: watch', () => { test('trigger when adding new property with Vue.set', async () => { const spy = vi.fn() const r = reactive({ exist: 5 }) - watch(r, spy, { deep: true }) + watch(() => r, spy, { deep: true }) set(r, 'add', 1) await nextTick()