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
Uh oh!
There was an error while loading. Please reload this page.
-
If use in @testing-library/vue, shoud follow
@testing-library/vuevue-router example addingrouteras plugins torenderfunction.Otherwise you'll get
injection "Symbol(router)" not foundwhen callinguseRouter()in component setup.Here's example code:
pinaRouterPluginsee #181Beta Was this translation helpful? Give feedback.
All reactions