9

Best Practices in Unit Testing

In the previous chapter, we learned about the concept of software testing. We learned what to test from an array of available components and methods. In addition, we learned about the best practices and industry-standard testing libraries and how to integrate them with Vue.js 3.

In this chapter, we will explore everything related to unit testing. We will learn how to unit test a Vue.js 3 component and the component and page methods. We will also learn about unit testing tools such as Jest and Mocha and how to use them to effectively unit test an enterprise project.

We will cover the following key topics in this chapter:

  • Introduction to unit testing
  • What is unit testing?
  • The importance of unit testing
  • The benefits ...

Get Architecting Vue.js 3 Enterprise-Ready Web Applications 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.