~/lightning

Snapshot testing

Lightningat React London 2017 · on Tuesday, 2017-03-28· [testing, react]

Snapshot testing claims to serialize component output and flag any DOM changes so regressions and tiny ordering mistakes surface immediately; Jest introduced snapshot testing and teams pair it with shallow-render + enzyme-to-json or plug it into AVA with fewer features. It excels at refactoring safety and raising code coverage, but it is committed snapshots cause merge conflicts and it encourages non‑TDD use so avoid it for core business logic. The interactive Jest watcher and simple update flow make it practical and effective for React components.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28What is a snapshot
  3. 2:30How does it work
  4. 5:15Testing frameworks
  5. 6:20What is good
  6. 8:07What is bad
  7. 10:36Questions
~/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.