Summary
In this chapter, we introduced the testing pyramid, covering the importance of tests and the different testing practices available within software development. We then moved on to unit tests and learned how to test our application using Vitest and Vue Test Utils. We then moved up to the testing pyramid and introduced E2E testing with Cypress. We created a small test that covered a simple user journey and learned a couple of techniques to select and test our application. Lastly, we closed the chapter with the introduction of future testing features that are part of the testing ecosystem and could be useful for future learning.
Your turn
Spend a couple of hours trying and testing more components to learn more about unit tests and expand the user journey of our E2E tests. Make sure to read the official documentation that includes all the available commands for both testing frameworks and is the best resource to find what you need.
In the next chapter, we are going to...