Vue router fails to resolve route #24522
Unanswered
LukasOchmann
asked this question in
Component Testing
Replies: 1 comment 2 replies
-
I think you might need to navigate somewhere, like Another problem I had was solved by doing I usually avoid testing the router in component tests - I've found it problematic since the component hierarchy doesn't match what it will be in production, but it's definitely possible to work around. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am testing a vue component using
useRoute
from vue-router:My cypress mount command adds a router:
The routes I use, all have both a name and a path.
When mounting this component vue router throws this error:
Did i do something wrong? Any idea how to solve this?
Beta Was this translation helpful? Give feedback.
All reactions