Shallow Rendering All The Way Down
summary
Claims that React 0.13 brings shallow rendering so tests run far faster than using JSDom, demos using the Airbnb enzyme API to query output, props, handlers and internal state, and inspects most lifecycle effects. Shows that nested components remain opaque (only their type is visible) so each child needs its own test, and that componentDidMount cannot be exercised. Links to a blog post and GitHub repo with working examples and code.
AI-written summary · about
chapters (5)
- 0:00Start
- 0:34Shallow Rendering - What Is It?
- 0:58What can we get out of it?
- 1:39Nested Components
- 3:28What else can we test with Shallow Rendering?








