Test Driving a React.js UI Component with Jasmine
summary
A walkthrough that actually builds a Disqus‑style comment component and shows it working with passing tests, not just slides. Code is on GitHub and the demo uses 100% test driven development for a React.js UI component, exercising sorting by likes and timestamp, private drafts, likes, and periodic refresh. Tests run in real browsers via React.js + Jasmine + Karma + webpack + Babel, with Enzyme for component assertions and jasmine ajax/spies to stub requests. About 32 tests run and coverage is reported.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:01ObjectOriented Programming
- 1:28Hierarchy of Objects
- 1:48Classic Debates
- 3:26Object Orientation
- 4:50Convention
- 5:15Recap
- 8:26Demo
- 10:38Commercial Break
- 11:47Reactjs UI Component
- 19:05Reactjs Comments
- 21:33Reactjs Component
- 23:24Single Comment Test
- 26:18React Basics
- 28:38Doubts
- 35:31Unit Tests vs Component Tests
- 40:21Spying on Ajax Calls








