~/talk

Jest & Enzyme-testing your React application

Talkat FrontCon 2018 · 2018-06-14..06-15· [testing, react]
links:none on file
slides:none on file

Jest provides zero configuration unit testing with built‑in assertion, mocking and coverage tools, and pairs with Enzyme for React rendering and interaction checks; use shallow vs mount to isolate components or exercise children, use jest.mock to replace APIs, and rely on snapshot testing (watch mode lets you press u to update) with a snapshot-diff option to show only changes so tests stay focused rather than brittle giant JSON blobs.

AI-written summary · about

  1. 0:00Start
  2. 1:33Testing Ui
  3. 2:42Snapshot Testing
  4. 4:06Snapshot Diff Library
~/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.