You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with the child rendering false was because we were not handling functional components in the stub. I've fixed that in #860 .
The second problem you have is because you're using shallowMount instead of mount. shallowMount stubs all child components to render as a tag with the name ${registerd-component-name}-stub. You can solve it by using mount:
Version
1.0.0-beta.21
Reproduction link
https://codesandbox.io/s/wnvpvr97ow
Steps to reproduce
Using Vuetify, I'm trying to test my usage of v-components :
Snapshots :
false
in my snapshot when I shallowMount my componentwrapper.find() doesn't seem to work on Vuetify components :
Creating a component with a template featuring a v-component with a class prop set to "something"
shallowMounting the new component
Trying to perform a
wrapper.find('.something')
on my componentWhat is expected?
Snapshot of v-component -> expecting to see the values / or other components I used in my template between the v-component-stub tags
wrapper.find('.v-component_class') -> New wrapper with v-component
What is actually happening?
Snapshot : Always get
false
value between v-component stub tagswrapper.find('.v-component_class') -> empty wrapper
Both seemed to work in 1.0.0-beta.20
The text was updated successfully, but these errors were encountered: