This chapter explains the basics of testing React apps. It will give us an overview of using Jest, which is a JavaScript test library developed by Facebook. We will cover Enzyme, which is a testing utility for React, developed by Airbnb. We will look at how you can create new test suites and tests, and also how to run the test and work with the results.
In this chapter, we will cover the following topics:
- Using Jest
- Snapshot testing
- Using Enzyme