Unit testing a Vue.js 3 app
In the previous chapter, we created a Pinterest application using Strapi for the backend and Vue.js 3 for the frontend.
Previously, we added internationalization, structured the project, and built out a complete Pinterest clone. In this section, we will continue by using the official project we created for this book to set up unit testing, resulting in a full-blown enterprise-ready Pinterest clone application.
You can clone the project from this repository, https://github.com/PacktPublishing/Architecting-Vue.js-3-Enterprise-Ready-Web-Applications, to jump right in.
In the previous chapter, we set up basic unit testing using Vitest and demonstrated how to implement basic unit testing with a helper file.
In this chapter, we will explore more advanced ways of testing the units of the Pinterest clone application we are using as the example throughout this book.
What to test
In the previous chapter, we explored in detail what to test when setting...