~/talk

Build your own test runner

Talkat ConfrontJS 2018 · on Monday, 2018-10-29· [nodejs, testing]

Live codes a mocha-like test runner in Node that actually requires test files registers global it functions and runs callbacks inside try catch. Uses the expect assertion library for diffs, wires events with Node’s EventEmitter-based reporter, formats output with chalk, and builds a small CLI that counts passing and failing tests (the demo uses two tests) and emits colored pass/fail lines plus a summary so the runner demonstrably works end to end.

AI-written summary · about

  1. 0:00Start
  2. 3:49To Build a Test Runner
  3. 8:18Test File
  4. 12:11Recap
  5. 15:24Create the Emitter
  6. 18:33Colors
  7. 21:24Passing Tests
  8. 22:41Green Tests
~/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.