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
Describe the bug
With shallowMount on Vue 3 + @vue/compat, properties of a child component are undefined when using them through a mixin.
If the property is moved from the mixin directly to the component, then the property is defined.
Also if the shallowMount is switched to mount, the property is defined.
To Reproduce
I created a demo repo where this issue can be reproduced, with tags for various working and not working states. It includes the following important files:
I do not doubt this is a bug, but I suspect fixing this will be quite complex. It may be a good time to attempt to move your test to use mount, which is a lot less complexity and more in parity with both Test Utils v1 and production in general.
Describe the bug
With
shallowMount
on Vue 3 + @vue/compat, properties of a child component are undefined when using them through a mixin.If the property is moved from the mixin directly to the component, then the property is defined.
Also if the
shallowMount
is switched tomount
, the property is defined.To Reproduce
I created a demo repo where this issue can be reproduced, with tags for various working and not working states. It includes the following important files:
And the following tags:
mount
instead ofshallowMount
Expected behavior
The second assertion should pass in the broken case
The text was updated successfully, but these errors were encountered: