Testing React Applications
summary
A small Twitter clone is built to show what actually gets tested: pure presentational components, container logic, and Redux actions with mocked fetches. Tests use jest + enzyme for mount, simulate and mock functions, plus shallow snapshot tests to avoid brittle HTML diffs. Examples include asserting callbacks on submit, shallow snapshots listing child components only, and dispatch sequences for promise middleware. Alternatives mentioned: react testing library, Storybook with storyshots, Puppeteer and Selenium for higher‑level checks.
AI-written summary · about
chapters (10)
- 0:00Start
- 1:38How to create nice react components?
- 3:45Let's talk about testing.
- 3:57What is easy to test?
- 11:08function of state
- 12:22Presentational Components
- 12:51Container Components
- 47:46Hooks
- 48:23And the real world?
- 51:37What's the take away?
related talks
10mTesting React Applications
30mTesting React Applications
01h 00mTest Driving React Applications
06mJest & Enzyme-testing your React application
22mElizabeth Funk - An Introduction to React Testing Library
30mTesting Front-End Applications
24mUsing React Testing Library to Write Stronger Tests
18mTesting React in a Right Way
