Skip to content

Commit

Permalink
test: apiWatch #12967
Browse files Browse the repository at this point in the history
  • Loading branch information
shangweiwei365 committed Feb 28, 2023
1 parent 18b05e4 commit 867e39b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/features/v3/apiWatch.spec.ts
Expand Up @@ -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()
Expand Down

0 comments on commit 867e39b

Please sign in to comment.