diff --git a/src/mount.ts b/src/mount.ts index 27735767ca..e45ed9daf0 100644 --- a/src/mount.ts +++ b/src/mount.ts @@ -482,7 +482,9 @@ export function mount( // otherwise we run into a proxy set error // due to https://github.com/vuejs/core/commit/f73925d76a76ee259749b8b48cb68895f539a00f#diff-ea4d1ddabb7e22e17e80ada458eef70679af4005df2a1a6b73418fec897603ceR404 // introduced in Vue v3.2.45 - if (hasSetupState(this)) { + // Also ensures not to not include options API components in this this scenario + // since they can also have setup state. + if (hasSetupState(this) && this.$.setupState.__isScriptSetup) { // add the mocks to setupState for (const [k, v] of Object.entries( global.mocks as { [key: string]: any }