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

Using a <component> tag does not stub the component when using shallowMount #995

Closed
BenShelton opened this issue Oct 10, 2018 · 0 comments
Closed
Labels

Comments

@BenShelton
Copy link

Version

1.0.0-beta.25

Reproduction link

https://codesandbox.io/s/wq7zw0k288

Steps to reproduce

Open project and run test

What is expected?

No text should appear because all the components are stubbed

What is actually happening?

The 'normal' component is stubbed, but all others are not not


I'm using <component :is="aComponent" /> to dynamically choose question components on forms based on other data. However because shallow mounting is not stubbing them the entire form is being created when I just want to test the wrapper.

This may be a similar problem to #959

eddyerburgh added a commit that referenced this issue Nov 25, 2018
Fixes #973
Fixes #994
Fixes #995


BREAKING CHANGE: The tag name rendered by snapshots will use the rendered component tag, rather than the registered component name
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