Patrick's Software Blog

Guide to Unit Testing Vue Components

White desktop with the VueJS and Vitest logos on the desk.


This blog post serves as a guide to unit testing Vue components. The key technologies utilized are:

  • Vue 3 with the Composition API - JavaScript framework
  • Vite - Tooling for Vue development
  • Vitest - Unit test framework
  • Vue Test Utils - test utility library for Vue
  • Node - JavaScript runtime

The full article can be found on