Skip to content
代码片段 群组 项目
提交 6b9a0c5e 编辑于 作者: Illya Klymov's avatar Illya Klymov
浏览文件

Introduce stubComponent helper

@vue/test-utils 1.x will change behavior for stubs. Now they will
render all available slots instead of defaults. To simplify
migration and taking care of emerging pattern of "stubbing with
props" we're introducing `stubComponent` helper, which will copy
props and model of stubbed component and also ensure that stubbed
component still could be found with default vue-test-utils finders
(this removes several ugly workarounds in our codebase)
上级 0e1bd185
No related branches found
No related tags found
无相关合并请求
显示
62 个添加58 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册