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
I'm using vue 3 and vue-test-utils v2 . I have a component which uses $root to listen events. When I try to test this component it fails by throwing error 'this.$root.$on' is not a function.
I have even tried using mounting options 'parentComponent' but not working.
If you are using vue v3.2.45, then yes there is a change in vue core that we have to work around in VTU
We already have the fix, and we are going to release it soon
I'm using vue 3 and vue-test-utils v2 . I have a component which uses $root to listen events. When I try to test this component it fails by throwing error 'this.$root.$on' is not a function.
I have even tried using mounting options 'parentComponent' but not working.
The text was updated successfully, but these errors were encountered: