vuetifyjs / nuxt-module

Zero-config Nuxt Module for Vuetify
https://nuxt.vuetifyjs.com/
MIT License
226 stars 22 forks source link

Unable to use with tests (vitest) #191

Closed linspw closed 10 months ago

linspw commented 10 months ago

I can't use the module used in conjunction with vitest.

I tried using the @nuxt/test-utils environment but it didn't work either.

I believe it may be related to the vuetify plugin specifically configFile scss.

 FAIL  components/application/app/__tests__/app-public-page-content.test.ts [ components/application/app/__tests__/app-public-page-content.test.ts ]
Error: Failed to load url /plugin-vuetify/lib/components/VApp/VApp.sass (resolved id: /plugin-vuetify/lib/components/VApp/VApp.sass). Does the file exist?
 ❯ loadAndTransform ../node_modules/.pnpm/vite@5.0.11_@types+node@18.19.7_sass@1.69.7/node_modules/vite/dist/node/chunks/dep-V3BH7oO1.js:49731:21
linspw commented 10 months ago

Creating the tests to detect and fixing the error: https://github.com/userquin/vuetify-nuxt-module/pull/194