-
Notifications
You must be signed in to change notification settings - Fork 665
Closed
Labels
Description
I never realized
mocks
was only for the component in question - I thought it would be available to all the children, too 🤔
It sounds like this should be the default behavior.
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 the mount
options.