So far, we've written a lot of code and come across a variety of problems. We haven't implemented automated testing for our software. However, it's a common approach to make sure everything works after making changes to your application. Automated testing drastically improves the quality of your software and reduces errors in production.
This chapter covers the following topics:
- How to use Mocha for testing
- Testing a GraphQL API with Mocha and Chai
- Testing React with Enzyme and JSDOM