Skip to content

Commit 704f018

Browse files
committed
issue-249 fix: include globally configured stubs
1 parent 1d273c2 commit 704f018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mount.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ export function mount(
410410
// compnents, too, such as <router-link> and <router-view>
411411
// so we register those globally.
412412
// 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)) {
413+
if (global?.stubs) {
414+
for (const [name, stub] of Object.entries(global.stubs)) {
415415
const tag = hyphenate(name)
416416
if (stub === true) {
417417
// default stub.

0 commit comments

Comments
 (0)