~/talk

Writing Tests That Don't Suck: TDD in JavaScript

Talkat Build Stuff 2022 · 2022-11-09..11-11· [javascript, testing]
slides:none on file

Claims that most JS suites are slow and brittle and then shows concrete fixes: set up jest + babel-preset-env and ES modules, run TDD with the red → green → refactor cycle, and use a continuous runner so WallabyJS gives milliseconds feedback. Demonstrates readable tests: AAA structure, test data builders, isolate external systems with mocks sparingly, favor fast in-memory outside‑in integration tests, and follow two rules—test the what not the how and assert capabilities, not specific test data.

AI-written summary · about

  1. 0:00Introduction and speaker welcome
  2. 1:35Personal journey with testing
  3. 3:51Why testing matters
  4. 4:58Unit testing basics
  5. 6:57Testing frameworks in JavaScript
  6. 8:24Testing pyramid and techniques
  7. 10:20Setting up JavaScript tests from scratch
  8. 15:50What is TDD
  9. 17:44TDD workflow explained
  10. 20:02Continuous test runners
  11. 21:34Intentionality in code and tests
  12. 23:43Organizing test code
  13. 25:12Improving test readability
  14. 27:25Avoiding test noise
  15. 29:17Keeping tests up to date
  16. 30:32Test data builders
  17. 31:21Isolating external systems
  18. 32:52Asserting single concepts
  19. 34:41Two big rules of testing
  20. 36:31Testing capabilities over data
  21. 38:43Integration tests and developer tests
  22. 41:43Outside-in testing workflow
  23. 43:15Q&A on contract testing
~/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.