Let's do a quick recap of what we have done so far in previous chapters:
- We created different Vue components for different pages
- We implemented Vuex—centralized state management for Vue.js applications, and defined state, getters, mutations, and actions for the components
- We created controllers and models to interact with the Node.js backend
In this chapter, we will discuss how to write test code to make sure that everything in the application works well. Writing test code is an integral part of any application. It helps to ensure that the functionalities that we have written do not break, and maintains the quality of the code we write.
Different practices can be followed while writing tests. It's always a good practice to write test code first, before writing the actual code. Writing tests ensures that our application will not break...