Unit Testing Vue.js Components with the Official Vue Testing Tools and Jest

Vue.js has become the framework of the year. It's very flexible, performant and easy to learn that lead to a massive adoption.

Here I'll show you how can you test Vue.js components using the official vue-test-utils.

  1. Write the first Vue.js Component Unit Test in Jest
  2. Test Deeply Rendered Vue.js Components in Jest
  3. Test Styles and Structure of Vue.js Components in Jest
  4. Test Properties and Custom Events in Vue.js Components with Jest
  5. Test Computed Properties and Watchers in Vue.js Components with Jest
  6. Test Methods and Mock Dependencies in Vue.js with Jest
  7. Test Vue.js Slots in Jest
  8. Enhance Jest configuration with Module Aliases