~/talk

Testing React in a Right Way

Talkat React Conf Armenia 2019 · on Saturday, 2019-05-25· [react, testing]
slides:none on file

Argues for testing user interactions not implementation details and shows a small app with a checkbox and email field where naive snapshot or shallow Enzyme tests miss a validation bug. Uses Enzyme vs React Testing Library comparisons, demonstrates firing a change event on an input rather than manipulating internals, and runs Cypress for e2e in headless CI with screenshots. Claims unit tests for logic, integration tests for DOM interactions, and e2e to catch browser quirks and disabled-field regressions; shows the CI suite actually catches real failures.

AI-written summary · about

  1. 0:00React testing intro
  2. 4:00Shallow rendering matters
  3. 7:57User interactions testing
  4. 13:09Headless testing
  5. 17:57Q&A
~/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.