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
I am using Vuetify aliases, it works fine in dev, but they are not getting resolved in the unit tests. I don't know if this is a bug or me not configurating my unit tests properly.
The tests are in /components/__tests__/MyComponent.spec.ts
Run npm i and npm run test.
Notice that in the first test, where I just use mountSuspended, there is a warning [Vue warn]: Failed to resolve component: my-v-btn-alias.
In the second test, I add vuetify in mountSuspended and my alias is gettign resolved, but there is a warning [Vue warn]: App already provides property with key "Symbol(vuetify:defaults)"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Packages
Describe the issue
I am using Vuetify aliases, it works fine in dev, but they are not getting resolved in the unit tests. I don't know if this is a bug or me not configurating my unit tests properly.
Reproduction
https://stackblitz.com/edit/nuxt-starter-aqsx5cz7?file=package.json
The alias is defined in
/plugins/vuetify.ts
The tests are in
/components/__tests__/MyComponent.spec.ts
Run
npm i
andnpm run test
.Notice that in the first test, where I just use mountSuspended, there is a warning
[Vue warn]: Failed to resolve component: my-v-btn-alias
.In the second test, I add vuetify in mountSuspended and my alias is gettign resolved, but there is a warning
[Vue warn]: App already provides property with key "Symbol(vuetify:defaults)"
Beta Was this translation helpful? Give feedback.
All reactions