the way to aviod injection "Symbol(router)" not found in @testing-library/vue #182
Fallsleep
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If use in @testing-library/vue, shoud follow
@testing-library/vue
vue-router example addingrouter
as plugins torender
function.Otherwise you'll get
injection "Symbol(router)" not found
when callinguseRouter()
in component setup.Here's example code:
pinaRouterPlugin
see #181Beta Was this translation helpful? Give feedback.
All reactions