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 f923e95 commit 88a5cedCopy full SHA for 88a5ced
src/mount.ts
@@ -507,7 +507,8 @@ export function mount(
507
console.warn = () => {}
508
509
const appRef = vm.$refs[MOUNT_COMPONENT_REF] as ComponentPublicInstance
510
- // we add `hasOwnProperty` so jest can spy on the proxied vm without throwing
+ // we add `hasOwnProperty` so Jest can spy on the proxied vm without throwing
511
+ // note that this is not necessary with Jest v27+ or Vitest, but is kept for compatibility with older Jest versions
512
appRef.hasOwnProperty = (property) => {
513
return Reflect.has(appRef, property)
514
}
0 commit comments