~/talk

UI and Unit Testing with Airbnb's Enzyme

Talkat UtahJS Conf 2017 · on Wednesday, 2017-09-27· [react, testing]
links:none on file
slides:none on file

Demonstrates testing React with Enzyme and Jest using shallow rendering to simulate events, spies for callbacks, and state inspection; breaks a submit spec into three focused tests instead of one bulky test; uses enzyme-to-json and snapshots reduce tests 40–60% by replacing many DOM assertions; notes that mount requires jsdom for full child rendering and that Jest runs about 700 tests in ~1 minute; mentions a small Jest dashboard utility being developed and explains how failing snapshots update with a single keystroke.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28Why unit testing matters
  3. 4:22Why use Enzyme
  4. 6:06Testing React components
  5. 10:27Testing user interactions
  6. 12:39Stateful components testing
  7. 15:28Avoiding overloaded tests
  8. 18:41UI testing with snapshots
  9. 22:36Snapshot benefits
  10. 24:46Setting up dependencies
  11. 27:35Jest configuration
  12. 29:42Testing strategy summary
  13. 31:51Q&A session
~/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.