~/talk

Writing better tests for your JavaScript app

Talkat NDC London 2017 · 2017-01-16..01-20· [javascript, testing]
slides:none on file

Shows concrete patterns and tools: uses Jest snapshot testing and Enzyme to keep most tests in-process, mock external HTTP with fetch-mock, and control timers to avoid waits. Raises functions into pure modules, uses a test seam or in-memory SQLite for reproducible subcutaneous API tests, and runs higher-level checks with supertest. Recommends UI tests only for deployment smoke checks and encapsulating interactions with the page object pattern. Demonstrates defensive checks (fail on unmatched API calls) and reports that snapshots drastically speed maintenance.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 1:26Defining testing goals
  3. 3:27Testing strategies
  4. 8:06Unit testing fundamentals
  5. 11:53Snapshot testing techniques
  6. 24:47High-level testing
  7. 28:49SPA and node API testing
  8. 37:40Subcutaneous testing
  9. 46:44Integration testing
  10. 50:00Page object pattern
  11. 56:33Conclusion and recap
~/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.