Key idea

Tests are executable documentation.

Why we test

Tools


Install (dev dependencies)

npm i -D vitest jsdom @testing-library/react @testing-library/user-event @testing-library/jest-dom @vitest/coverage-v8

What each package is for

Basic setup (Vite + React)