Jest Testing
summary
Claims that Jest runs super fast, prioritizes failed tests, and sandboxs globals; shows using jest-preset-angular and ts-jest with jsdom so zero-or-minimal config. Demonstrates snapshot testing (files in __snapshots__), code-coverage out of the box, and testing reducers, actions, components and effects with rxjs-marbles. Gives a concrete workflow: store snapshots in Git, update or review diffs on refactor, and reports refactoring 200 tests in hours instead of weeks.
AI-written summary · about
chapters (10)
- 0:00The case for testing
- 1:31Introduction to Jest
- 3:26Installation and setup
- 5:28Advanced CLI features
- 8:18Testing NgRx actions
- 9:39Snapshot testing basics
- 12:32Testing NgRx reducers
- 13:49Testing NgRx effects
- 17:12Testing components
- 18:31Conclusion and Q&A








