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 mocks object is only set for the first component; not it's children. This behaviour means that properties such as $route / $router are not easily mockable via integration style testing.
There is ways around this, by using localVue and creating a router instance and setting on the mount options.
The text was updated successfully, but these errors were encountered:
Originally posted by @lmiller1990 in #1701 (comment)
The mocks object is only set for the first component; not it's children. This behaviour means that properties such as
$route
/$router
are not easily mockable via integration style testing.There is ways around this, by using
localVue
and creating a router instance and setting on themount
options.The text was updated successfully, but these errors were encountered: