~/talk

How to Stop Hating Tests with Jest, Supertest and Cypress

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

Shows a concrete setup: Jest + Supertest for backend by exporting the app and hitting endpoints without running a separate server, plus Cypress for browser E2E with real-network tests or stubbed fixtures, screenshots and recorded videos. Demonstrates using mocks, snapshots and coverage to catch API contract changes, a zipcode autofill test that stubs the address response, and practical rules: one assertion per test, arrange-act-assert, readable tests and CI-friendly configs.

AI-written summary · about

  1. 0:00Start
  2. 4:13Why do you hate testing?
  3. 6:29Tests can do 3 things
  4. 7:46Common problems
  5. 19:07End to end tests in the back end? how?
  6. 19:41You can test your endpoints
  7. 26:20DON'T Stub The Response
  8. 28:18Stub Response
  9. 34:20Write clean test code
~/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.