TEST LIKE IT'S 2017!
summary
Modern JS testing centers on Jest as a zero-configuration runner with fast parallel execution, smart watch mode and failing-test-first feedback; snapshot testing captures component or function output as readable text so changes surface as intentional updates; styled-components need a custom serializer to produce meaningful snapshots rather than noisy class hashes; a style guide + snapshot pipeline (using react style guide) generates tests without hand-writing them, and a tool called react-fix-it records browser failures into reproducible failing tests.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:03Why developers skip tests
- 3:10Why testing matters
- 5:15Testing pyramid evolution
- 7:03Why Jest is great
- 9:53Snapshot testing demo
- 13:49Snapshot testing myths
- 16:39Customizing Jest
- 17:23Testing style components
- 21:20Migrating to Jest
- 22:02Writing fewer tests
- 23:04SnapGuideList demo
- 26:42ReactFixIt demo
- 30:59Recap and fun
- 31:20Q&A
