Running and debugging Jest tests in WebStorm
summary
WebStorm runs and debugs Jest tests end to end: create a Jest run config, enable watch mode auto-runs tests, set a breakpoint and breakpoint and step into divide to inspect a type mismatch (string vs number) and fix it, view test-run UI and rerun only failed tests, generate coverage 83% → 100% by adding a missing assertion, and run React snapshot tests (with Enzyme) that show diffed snapshots which can be updated and committed.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:31Testing with Jest
- 2:37Structure View
- 5:41Code Coverage Reports
- 7:03Snapshot Testing
- 7:30Snap Files








