Unit Testing Complex React Components With Jest & Enzyme

Shashike J
Mar 18, 2020 · 6 min read
image by https://ned-alyona.github.io/presentations/react-components-testing/

This article covers testing React components that do things like conditional rendering, click listening and making HTTP requests. I cover the process and methods needed to test 2 React components constructed using the new functional style (with Hooks and so on) and some common pitfalls to avoid when testing React components.

Testing a Redux connected…