~/talk

Jest & Enzyme Complement Each Other.

Talkat React Day Berlin 2017 · on Saturday, 2017-12-02· [testing, react]
slides:none on file

Clear claim: Jest and Enzyme work together, not against each other. Jest provides snapshot testing, fast parallel runs, built‑in mocking via jest.mock and __mocks__, fake timers, coverage and watch modes; Enzyme gives shallow/mount/render for precise DOM targeting and event simulation. Practical specifics include using snapshot serializers (enzyme-to-json), mocking async fetches in __mocks__ to test promises, and configuring adapters for React versions so tests run reliably in production.

AI-written summary · about

  1. 0:00Start
  2. 1:07Why Jest
  3. 2:28Shallow Render in Reactor
  4. 6:15Snapshot Serializers
  5. 8:14Sync Api Testing
  6. 9:35Watch Mode
~/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.