Skip to content
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

Closed
ktsn opened this issue Sep 7, 2018 · 0 comments
Closed

shallowMount will not stubs lazily registered components #959

ktsn opened this issue Sep 7, 2018 · 0 comments
Labels

Comments

@ktsn
Copy link
Member

ktsn commented Sep 7, 2018

Version

1.0.0-beta.24

Reproduction link

https://github.com/ktsn/vue-test-utils-shallow-repro

Steps to reproduce

  1. clone the reproduction
  2. npm i
  3. npm t

You will see the test case is failing.

What is expected?

The Child.vue component should be stubbed by shallowMount.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants