Skip to content

Commit 867e39b

Browse files
author
shangweiwei365
committed
test: apiWatch #12967
1 parent 18b05e4 commit 867e39b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"build:types": "rimraf temp && tsc --declaration --emitDeclarationOnly --outDir temp && api-extractor run && api-extractor run -c packages/compiler-sfc/api-extractor.json",
4646
"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",
4747
"test:unit": "vitest run test/unit",
48-
"test:watch": "vitest run test/unit/features/v3/apiWatch.spec.ts",
4948
"test:ssr": "npm run build:ssr && vitest run server-renderer",
5049
"test:sfc": "vitest run compiler-sfc",
5150
"test:e2e": "npm run build -- full-prod,server-renderer-basic && vitest run test/e2e",

test/unit/features/v3/apiWatch.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ describe('api: watch', () => {
12051205
test('trigger when adding new property with Vue.set', async () => {
12061206
const spy = vi.fn()
12071207
const r = reactive({ exist: 5 })
1208-
watch(r, spy, { deep: true })
1208+
watch(() => r, spy, { deep: true })
12091209
set(r, 'add', 1)
12101210

12111211
await nextTick()

0 commit comments

Comments
 (0)