Testing React Applications
summary
Shows a small Todo app and proves tests actually catch behaviour: adding, toggling and deleting items work and regressions get prevented. Uses tape as the test runner, React TestUtils + shallow rendering for fast unit checks, jsdom and mount/Enzyme for DOM interaction, and browser bundling to run tests in Chrome. Core state logic is extracted to plain functions so pure-unit tests run quickly. All examples build and run successfully.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:03Overview
- 4:34Tape
- 6:44Embrace JavaScript Objects
- 8:43Testing React Components
- 13:47Testing User Interaction
- 15:01JSON DOM
- 18:45Test doubles
- 19:59Form submissions
- 21:25Highlevel tests
- 23:44Enzyme
- 24:31Shallow Rendering
- 25:28Mount
- 27:27Outro








