-
Notifications
You must be signed in to change notification settings - Fork 669
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
shallowMount will not stubs lazily registered components #959
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
1.0.0-beta.24
Reproduction link
https://github.com/ktsn/vue-test-utils-shallow-repro
Steps to reproduce
npm i
npm t
You will see the test case is failing.
What is expected?
The
Child.vue
component should be stubbed byshallowMount
.What is actually happening?
The
Child.vue
component is not stubbed and simply rendered as is.The pattern which written in reproduction is an approach to deal with circular reference between components. It is stated in Vue.js official documentation. So I think it would be useful if we can handle such pattern on
shallowMount
.The text was updated successfully, but these errors were encountered: