Skip to content
代码片段 群组 项目
未验证 提交 498b058f 编辑于 作者: Tim Noah's avatar Tim Noah 提交者: GitLab
浏览文件

Fix FOSS specs running under EE

There were a few problems here:

1. The implementation imports some components from `ee_else_ce`, while
   the FOSS spec was importing all from FOSS. This meant that the spec
   was asserting against the wrong component.
2. The EE components have injections without default values. Under Vue
   3, this results in a warning being logged, which fails the test. The
   tests now provide sensible values for those injections.
3. It seems that calling `wrapper.props()` on a Vue wrapper wrapping a
   component that extends another component doesn't work as expected
   under Vue 3. The props object is empty, as if the component doesn't
   define any props. This is either a bug in `@vue/test-utils@2`, or a
   bug in our compat layer `vue-test-utils-compat`. The workaround for
   now is to explicitly redeclare the props on the component that
   extends the other.
上级 ccaab866
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册