← Vue.js learning pathVue.js · Module 10 of 10
Testing and deploying Vue apps
Test components and ship your Vue app to production.
📖 Key ideas
- Vitest runs fast unit tests; Vue Test Utils mounts components.
- Playwright or Cypress tests full user flows.
- npm run build outputs dist/.
- Deploy dist/ to Netlify, Vercel or Firebase Hosting.
- Nuxt offers SSR and static generation for SEO.
💡 Real-life example: Testing is a dress rehearsal: practise every scene before the audience (users) arrives.
VitestFast Vite-based test runner
Vue Test UtilsMounts components in tests
dist/Production build folder
SSGStatic site generation