Testing a basic 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 software 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.
Creating a test folder
It is always confusing knowing where to add your test files and folder when it comes to creating enterprise applications. There are two methods for structuring your test files depending on the approach you used for your enterprise project.
Method 1 – adding test files inside each component
First, you can create a specific test file inside each...