~/talk

Testing React Applications

Talkat iJS London 2019 · 2019-05-13..05-15· [react, testing]
slides:none on file

A small Twitter clone is built to show what actually gets tested: pure presentational components, container logic, and Redux actions with mocked fetches. Tests use jest + enzyme for mount, simulate and mock functions, plus shallow snapshot tests to avoid brittle HTML diffs. Examples include asserting callbacks on submit, shallow snapshots listing child components only, and dispatch sequences for promise middleware. Alternatives mentioned: react testing library, Storybook with storyshots, Puppeteer and Selenium for higher‑level checks.

AI-written summary · about

  1. 0:00Start
  2. 1:38How to create nice react components?
  3. 3:45Let's talk about testing.
  4. 3:57What is easy to test?
  5. 11:08function of state
  6. 12:22Presentational Components
  7. 12:51Container Components
  8. 47:46Hooks
  9. 48:23And the real world?
  10. 51:37What's the take away?
~/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.