Testing Is All About Principles
summary
Claim: testing succeeds when principles beat tool arguments. Shows a small Messenger‑like app, writes unit, integration and higher‑level tests with Enzyme and react‑testing‑library, mocks an API via dependency injection, and proves a test that breaks when Redux is removed reveals white‑box coupling. Warns that render without crashing tests and chasing 90% code coverage are vanity moves, adds Lighthouse in CI for performance signals, and demonstrates how tests behave during refactoring.
AI-written summary · about
chapters (4)
- 0:00Start
- 3:08My goal today is to foster critical thinking and to explore testing principles
- 3:29First, who does benefit of writing tests?
- 5:08Code refactoring. We change how the code works. We do not change what it does
related talks
39mTesting, Testing, 1, 2, NaN
18mTesting React in a Right Way
01h 02mWriting better tests for your JavaScript app
32mEstablishing testing patterns with software design principles
30mTesting Front-End Applications
24mUsing React Testing Library to Write Stronger Tests
22mElizabeth Funk - An Introduction to React Testing Library
41mTesting that the code does what the code does
