Chapter 7. Testing – Time to Test What We Have Done So Far!

In the previous chapter, you learned how to use and create Vue plugins. We used the existing resource plugin for Vue and created our own NoiseGenerator plugin.

In this chapter, we will ensure the quality of both the Pomodoro and shopping list applications. We will test these applications applying different testing techniques. First, we will perform a classic unit test on Vue components and on Vuex-related code such as actions, mutations, and getters. After that, we will learn how to perform end-to-end testing using Nightwatch. So, in this chapter, we will do the following:

  • Talk about the importance of unit and end-to-end tests
  • Implement unit tests for the Pomodoro and shopping list applications ...

Get Learning Vue.js 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.