diff --git a/packages/dts-test/setupHelpers.test-d.ts b/packages/dts-test/setupHelpers.test-d.ts index 53c4d859788..0e06e849b22 100644 --- a/packages/dts-test/setupHelpers.test-d.ts +++ b/packages/dts-test/setupHelpers.test-d.ts @@ -318,10 +318,6 @@ describe('defineModel', () => { defineModel({ default: 123 }) // @ts-expect-error unknown props option defineModel({ foo: 123 }) - - // accept defineModel-only options - defineModel({ local: true }) - defineModel('foo', { local: true }) }) describe('useModel', () => { diff --git a/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts b/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts index e5bca1d9272..aceab13650e 100644 --- a/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts +++ b/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts @@ -14,7 +14,9 @@ import { ComputedRef, shallowReactive, nextTick, - ref + ref, + Ref, + watch } from '@vue/runtime-test' import { defineEmits, @@ -184,13 +186,17 @@ describe('SFC