Crushing React bugs with Jest and Enzyme
summary
Walkthrough of concrete testing work: uses Jest and Enzyme on a React app built for the Red Hat Marketplace, configures an Enzyme adapter for the React version, and pushes example tests and a repo. Shows shallow versus mount, snapshot creation and a snapshot mismatch failure example, a modal interaction test that clicks a button and asserts an element gains an is-visible class, and a coverage report highlighting uncovered lines. Notes Enzyme pitfalls and using CodeSandbox to run tests.
AI-written summary · about
chapters (5)
related talks
41mUI and Unit Testing with Airbnb's Enzyme
06mJest & Enzyme-testing your React application
32mEnzyme/Jest React Components Testing by Hayk Barseghyan (Arm) | JSConfAM19
18mTesting React in a Right Way
22mElizabeth Funk - An Introduction to React Testing Library
10mTesting React Applications
29mTest-Driven Development with Jest
26mMigrating from Enzyme to React Testing Library
