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
When mounting a component that uses useRoute() or useRouter() with vue-test-utils and a vue-i18n-router, the useRoute and useRouter composables do not return any values. Instead the following error will be printed:
[Vue warn]: injection "Symbol(route location)" not found.
at <HelloWorld ref="VTU_COMPONENT" >
at <VTUROOT>
When using a vue-router instead of the vue-i18n-router everything is working as expected.
Describe the bug
When mounting a component that uses
useRoute()
oruseRouter()
withvue-test-utils
and avue-i18n-router
, theuseRoute
anduseRouter
composables do not return any values. Instead the following error will be printed:When using a
vue-router
instead of thevue-i18n-router
everything is working as expected.Reproduction
https://stackblitz.com/edit/vitejs-vite-vckr8m?file=tests%2FSample.spec.js
System Info
Used Package Manager
npm
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: