Summary
Now you know how to create the React components and unit test them.
In this chapter, you learned the essentials of Jest—the unit testing framework from Facebook that works well with React. You got introduced to the Enzyme library and learned how it simplifies writing unit tests for React components. We discussed the test suites, specs, expectations, and matchers. We created mocks and simulated click events.
In the next chapter, you'll learn the essentials of the Flux architecture and how to improve the maintainability of our React application.