~/talk

Testing in the Node.js World

TalkinRussianat JavaScript fwdays'17 · on Saturday, 2017-04-22· [nodejs, testing]
links:none on file
slides:none on file

Practical Node.js testing patterns: use arrange–act–assert style, prefer fast unit and integration tests, isolate and clean side effects with afterEach, and avoid long-running tests. Uses mocha/assert/chai for tests, supertest with an express instance for integration checks, nyc for coverage, and runs some suites in parallel with jest; also shows a helper that starts a child process, sends SIGTERM and asserts exit code 0, and warns about test slowness and flaky failures from uncleaned queues.

AI-written summary · about

  1. 0:00Node.js testing intro
  2. 4:26Testing requirements
  3. 10:48Node.js specifics
  4. 15:04Test types and uses
  5. 21:09Integration/component tests
  6. 28:24Effective test principles
  7. 32:43Q&A
~/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.