A simple-to-use Enzyme alternative

The React Testing Library was created by the software testing guru, Kent C. Dodds. The goal was to provide a replacement for the popular JavaScript testing library, Enzyme that is more lightweight and eliminates the possibility of ‘damaging testbases’.

Kent is an advocate for good testing practices. He has written many blog posts on the topic that are publicly available and highly recommended. He explains the importance of writing tests that are maintainable meaning that they will still pass if the code being tested is refactored. The functionality is what we should be testing — not implementation.

#javascript #react #enzyme #programming #testing

React Testing Library Overview
7.60 GEEK