~/talk

Scaling the Testing Pyramid in JavaScript

slides:none on file

Builds a Vue/TypeScript tic‑tac‑toe PWA and shows unit, component, integration, API and end‑to‑end tests running from local dev to CI, with live code for a checkWin unit, leaderboard and tile component tests, mocked Redis for API unit tests, and Cypress end‑to‑end flows that capture video. Uses the Jest, Vue Test Utils, supertest and Cypress toolchain, stubs/mocks via TS mock imports / partial request/response objects, and a GitHub Actions pipeline that runs tests (5 backend tests green) aiming for sub‑10 minute builds. Code is on GitHub.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 10:51Why we test and testing pyramid
  3. 13:22Testing web apps differences
  4. 17:20Tools for unit testing
  5. 19:25Application overview
  6. 26:20Unit test for win condition
  7. 28:07Component test for leaderboard
  8. 30:15Component test for board tile
  9. 32:51Unit test with mocking
  10. 40:10Integration test for API
  11. 42:20API test from frontend
  12. 43:23End-to-end test with Cypress
  13. 44:05Running tests in pipeline
  14. 47:18DevOps pipeline demo
  15. 50:52Summary and best practices
~/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.