Ship

Testing

Unit tests, end-to-end tests and CI.

01Before every change

Terminal
npm run check   # typecheck, lint and unit tests

02End-to-end

Terminal
npx playwright install chromium   # once
npm run test:e2e:local
E2E_SERVER_LOGS=1 npm run test:e2e:local   # with server output

It builds the app for port 3100 with matching auth URLs, the dev mailbox, fake AI and billing off, then runs public and signed-in flows against a migrated, seeded database.

03CI

GitHub Actions runs typecheck, lint and unit tests, then migrates and seeds a Postgres service, builds and runs the Playwright suite on every push and pull request.