How to test React components with Jest

1 · Robin Wieruch · July 16, 2019, 11:56 a.m.
This tutorial is part 2 of 2 in the series. Part 1: How to set up React with Webpack and Babel Jest got introduced by Facebook for testing JavaScript and especially React applications. It’s one of the most popular ways to test React components nowadays. Since it comes with its own test runner, you can simply call Jest from the command line to run all your tests....