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

Warning messages thrown about child components created with vue.extend even when parent component is mounted with shallowmount #973

Closed
hanjra-pb02 opened this issue Sep 17, 2018 · 0 comments
Labels

Comments

@hanjra-pb02
Copy link

Version

1.0.0-beta.25

Reproduction link

// Components created with Vue.extend are not created internally in Vue
// by extending a localVue constructor. To make sure they inherit
// properties add to a localVue constructor, we must create new components by
// extending the original extended components from the localVue constructor.
// We apply a global mixin that overwrites the components original
// components with the extended components when they are created.

Steps to reproduce

ShallowMount a component that has child components created with vue.extend

What is expected?

as shallow mount automatically stubs all child components there should be no warning about how child components has been modified

What is actually happening?

Getting these warnings.

[vue-test-utils]: The child component xyz has been modified to ensure it is created with properties injected by Vue Test Utils. This is because the component was created with Vue.extend, or uses the Vue Class Component decorator. Because the component has been modified, it is not possible to find it with a component selector. To find the component, you must stub it manually usi ng the stubs mounting option, or use a name or ref selector. You can hide this warning by setting the Vue Test Utils config.logModifiedComponents option to false.

@eddyerburgh eddyerburgh mentioned this issue Oct 26, 2018
13 tasks
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
wiese added a commit to wmde/wikibase-termbox that referenced this issue Dec 21, 2018
Update to latests @vue/test-utils.
This fixes, amongst others,
vuejs/vue-test-utils#973 encountered during
wiese added a commit to wmde/wikibase-termbox that referenced this issue Dec 21, 2018
Update to latests @vue/test-utils.
This fixes, amongst others,
vuejs/vue-test-utils#973
encountered during #137
jakobw pushed a commit to wmde/wikibase-termbox that referenced this issue Dec 21, 2018
Update to latests @vue/test-utils.
This fixes, amongst others,
vuejs/vue-test-utils#973
encountered during #137
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