~/talk

Surviving the JS Testing Tools Jungle

TalkinFrenchat Devfest Strasbourg 2023 · on Wednesday, 2023-11-15· [testing, javascript]
slides:none on file

Covers how to make automated JavaScript tests reliable and fast so teams can ship smaller, less-buggy increments. Surveys concrete tools and patterns: Jest or Mocha for runners/structure, Chai and Sinon for assertions/spies, Cypress or Playwright (vs Selenium/WebDriver) for browser control, recommends Given‑When‑Then or Arrange‑Act‑Assert, use Testing Library role/text selectors to avoid fragile CSS-based tests, fix flaky tests instead of skipping them, and favor a trophy-shaped test suite with mostly frontend integration tests.

AI-written summary · about

  1. 0:00Introduction
  2. 5:10JS testing tools overview
  3. 9:09Testing tool types
  4. 13:27Flaky tests and robustness
  5. 16:01Unit test debates
  6. 21:29Fragile tests and fixes
  7. 24:23Balancing test coverage
  8. 27:21Useless versus relevant tests
  9. 33:26Test Trophy strategy
  10. 40:50Conclusion
~/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.