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 1d273c2 commit 704f018Copy full SHA for 704f018
src/mount.ts
@@ -410,8 +410,8 @@ export function mount(
410
// compnents, too, such as <router-link> and <router-view>
411
// so we register those globally.
412
// https://github.com/vuejs/vue-test-utils-next/issues/249
413
- if (options?.global?.stubs) {
414
- for (const [name, stub] of Object.entries(options.global.stubs)) {
+ if (global?.stubs) {
+ for (const [name, stub] of Object.entries(global.stubs)) {
415
const tag = hyphenate(name)
416
if (stub === true) {
417
// default stub.
0 commit comments