← Vue.js learning path
Vue.js · Module 10 of 10

Testing and deploying Vue apps

Test components and ship your Vue app to production.

📖 Key ideas

  1. Vitest runs fast unit tests; Vue Test Utils mounts components.
  2. Playwright or Cypress tests full user flows.
  3. npm run build outputs dist/.
  4. Deploy dist/ to Netlify, Vercel or Firebase Hosting.
  5. 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