~/lightning

Shallow Rendering All The Way Down

Lightningat ReactEurope 2016 · on Wednesday, 2016-06-01· [react, testing]
slides:none on file

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

  1. 0:00Start
  2. 0:34Shallow Rendering - What Is It?
  3. 0:58What can we get out of it?
  4. 1:39Nested Components
  5. 3:28What else can we test with Shallow Rendering?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.