Skip to content
代码片段 群组 项目
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。
@vue+test-utils-vue3+2.3.1.patch 813 B
diff --git a/node_modules/@vue/test-utils-vue3/dist/vue-test-utils.cjs.js b/node_modules/@vue/test-utils-vue3/dist/vue-test-utils.cjs.js
index 2902a1e..4f5ab30 100644
--- a/node_modules/@vue/test-utils-vue3/dist/vue-test-utils.cjs.js
+++ b/node_modules/@vue/test-utils-vue3/dist/vue-test-utils.cjs.js
@@ -7945,7 +7945,8 @@ function createStubComponentsTransformer(_a) {
             var stubName = name || registeredName || componentName;
             return ((_c = (_b = (_a = config.plugins).createStubs) === null || _b === void 0 ? void 0 : _b.call(_a, {
                 name: stubName,
-                component: type
+                component: type,
+                registerStub
             })) !== null && _c !== void 0 ? _c : createStub({
                 name: stubName,
                 type: type,