diff --git a/packages/runtime-core/__tests__/apiWatch.spec.ts b/packages/runtime-core/__tests__/apiWatch.spec.ts index 3a9ad4fca79..b25635e664e 100644 --- a/packages/runtime-core/__tests__/apiWatch.spec.ts +++ b/packages/runtime-core/__tests__/apiWatch.spec.ts @@ -161,8 +161,8 @@ describe('api: watch', () => { it('directly watching reactive object with explicit deep: false', async () => { const src = reactive({ state: { - count: 0 - } + count: 0, + }, }) let dummy watch( @@ -171,8 +171,8 @@ describe('api: watch', () => { dummy = state?.count }, { - deep: false - } + deep: false, + }, ) // nested should not trigger diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index 85507a42bcb..0c13e72988f 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/packages/runtime-core/src/apiWatch.ts @@ -467,7 +467,7 @@ export function traverse( value: unknown, depth?: number, currentDepth = 0, - seen?: Set + seen?: Set, ) { if (!isObject(value) || (value as any)[ReactiveFlags.SKIP]) { return value