We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9962e5b commit 371078cCopy full SHA for 371078c
src/mount.ts
@@ -425,9 +425,13 @@ export function mount(
425
426
// mount the app!
427
const vm = app.mount(el)
428
+ const appRef = vm.$refs[MOUNT_COMPONENT_REF] as ComponentPublicInstance
429
- const App = vm.$refs[MOUNT_COMPONENT_REF] as ComponentPublicInstance
430
- return createWrapper(app, App, setProps)
+ const warnSave = console.warn
431
+ console.warn = () => {}
432
+ const $vm = Reflect.ownKeys(appRef).length ? appRef : vm
433
+ console.warn = warnSave
434
+ return createWrapper(app, $vm, setProps)
435
}
436
437
export const shallowMount: typeof mount = (component: any, options?: any) => {
0 commit comments