~/talk

Testing React Components

Talkat ReactJS Day 2018 · on Friday, 2018-10-05· [testing, react]
slides:none on file

A concrete experiment compares tight unit tests with loose unit tests on a login form that fetches and updates Redux state: starting tests are four files and 18 tests, then refactors move from connected Redux components to a setState form and finally to a generic form. The loose, user-facing tests survive without change; tight tests require many rewrites. Uses declarative “marks” to mock props state localStorage window size and API responses and recommends mocking data not internal modules.

AI-written summary · about

  1. 0:00Start
  2. 2:09Who cares?
  3. 3:50Testing pros
  4. 5:05Testing cons
  5. 5:48Test anatomy
~/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.