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'm in the midst of upgrading my Vue2/Nuxt 2 app to Nuxt Bridge in the transition to Nuxt 3. I've completed the change from Webpack to Vite, and everything is working. However, I am unclear about next steps with regards to unit tests.
I am currently using Jest, whose website explicitly states it doesn't work with Vite. I've been looking into Vitest, but it appears most related packages target Vue 3, such as @vitejs/plugin-vue. Any browser packages I have tried have Vitest throwing Error: Cannot find package 'happy-dom' (or jsdom, or @vitest/browser).
I am unable to find documentation on a recommended path forward for component testing. Is anyone able to point me in the correct direction? Thank you
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm in the midst of upgrading my Vue2/Nuxt 2 app to Nuxt Bridge in the transition to Nuxt 3. I've completed the change from Webpack to Vite, and everything is working. However, I am unclear about next steps with regards to unit tests.
I am currently using Jest, whose website explicitly states it doesn't work with Vite. I've been looking into Vitest, but it appears most related packages target Vue 3, such as
@vitejs/plugin-vue. Any browser packages I have tried have Vitest throwingError: Cannot find package 'happy-dom'(orjsdom, or@vitest/browser).I am unable to find documentation on a recommended path forward for component testing. Is anyone able to point me in the correct direction? Thank you
Beta Was this translation helpful? Give feedback.
All reactions