~/talk

Establishing testing patterns with software design principles

Talkat Assert(js) 2018 · on Thursday, 2018-02-22· [testing, react]
slides:none on file

Lack of clarity around testing React apps causes fragile, low-value tests so the claim is to apply software design patterns to tests: favor mutation-layer tests that set an initial state, dispatch an increment action test, and assert store changes rather than heavy UI rendering. Practical tools mentioned include snapshot testing, Enzyme, create-react-app, and the eslint rule tester, plus shared utilities like mock initial data and generated test templates. One-off tests yield ~30–40% coverage easily while the final 5–10% costs disproportionate effort; shared utilities and lint rules survive major refactors.

AI-written summary · about

  1. 0:00Start
  2. 5:05WHAT MAKES A GOOD TEST
  3. 12:29ISOLATION
  4. 13:38GENERAL PRINCIPLES
  5. 16:20TEST STRUCTURE
  6. 17:03PROS
  7. 20:07KEEP TESTS CLEAN
  8. 20:21TEST UTILITIES
  9. 23:12ESLINT RULE TESTER
  10. 24:18GENERATE TEST TEMPLATES
  11. 25:10LINT RULES AND DOCUMENTATION
  12. 27:16UNIT / INTEGRATION
  13. 28:05THIS HAPPENED BEFORE
~/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.