~/talk

How to Succeed with Node.js Testing

Talkat Node.js Global Summit 2020 · on Saturday, 2020-05-30· [nodejs, testing]
slides:none on file

Shows how moving business logic out of controllers into plain functions and using express + mongoose as the example reduces test toil and avoids spinning up servers for every check. Replaces heavy service objects with a higher-order function pattern to pass only needed dependencies, so tests mock only real external calls (metrics) and stay meaningful. Recommends pragmatic integration tests, end-to-end with CodeceptJS + Gherkin or Cypress/Playwright, and a state builder to speed E2E flows, plus test segmentation for parallel CI.

AI-written summary · about

  1. 0:00Start
  2. 14:26Unit test
  3. 17:21Integration test
  4. 28:56SUMMARY
~/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.