08. Testing & quality

How you make sure code actually works — and keeps working as it changes. Covers the testing pyramid (unit, integration, end-to-end), plus the surrounding quality tools (linting, type checking, formatting).


Entries

#EntryStatusOne-line description
1Why test?🟩 COMPLETEThe real costs of not testing — and the trap of testing too much
2Unit tests🟩 COMPLETESmall, fast tests of individual functions
3Integration tests🟩 COMPLETETests that exercise multiple parts together
4End-to-end (E2E) tests🟩 COMPLETETests that drive the real browser like a user — Playwright, Cypress
5Linting🟩 COMPLETEAutomated rule-checks for code style and common mistakes
6Type checking🟩 COMPLETETypeScript’s tsc — catching whole classes of bugs before runtime
7Code review🟩 COMPLETE 🟦 LIVINGWhy a second pair of eyes (or an AI) on a PR matters

Suggested reading order

1 → 5 → 6 → 2 → 3 → 4 → 7. Linting and type checking are the cheapest wins; tests are higher-investment.

See also

7 items under this folder.