Warning messages thrown about child components created with vue.extend
even when parent component is mounted with shallowmount
#973
Labels
vue.extend
even when parent component is mounted with shallowmount
#973
Version
1.0.0-beta.25
Reproduction link
vue-test-utils/packages/create-instance/extend-extended-components.js
Lines 42 to 47 in 0d1ddd1
Steps to reproduce
ShallowMount
a component that has child components created with vue.extendWhat 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.
The text was updated successfully, but these errors were encountered: