-
Notifications
You must be signed in to change notification settings - Fork 668
Unable to stub child components #969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried using the latest beta.25? |
@eddyerburgh Yes I have but figured I reference the beta.20 for my example since that is the version being used by Vue-cli now. |
Looks like it is an Element-UI bug: |
The original issue is because you are not stubbing the el-select component correctly. You need to use the name that the component will attempt to be resolved as. The easiest option is to use the same name as the tag name used to render the component: mount(TestComponent, {
stubs: ['el-select']
}) The mount(TestComponent, {
stubs: {
transition: false
}
}) This will be fixed after Vue 2.5.18 is released. Closing in favor of #958 |
Version
1.0.0-beta.20
Reproduction link
https://stackoverflow.com/questions/52304864/unable-to-mount-element-ui-child-component-in-test
Steps to reproduce
I have written out the steps to reproduce here. Thanks:
https://stackoverflow.com/questions/52304864/unable-to-mount-element-ui-child-component-in-test
What is expected?
Able to mount the Vue component being tested
What is actually happening?
Unable to mount the Vue component seemingly because of a missing child component that is not being stubbed out.
Thanks!
The text was updated successfully, but these errors were encountered: