ESC
> launch.rentals beta
Home › Docs ›Operations › Testing

Testing

Rules run against an in-memory Postgres

Tests use Vitest. Run them with npm test. Pure logic (permissions, slugs, CSV parsing, status transitions, unit counts, calendar layout, sitemaps) has unit tests. Features that touch the database (analytics, booking requests, renter accounts, public data) run against PGlite, an in-memory Postgres, with the real migrations applied, so no database is needed to run the suite.

CommandChecks
npm testThe test suite
npm run lintESLint
npm run typecheckGenerates route types, then TypeScript
npm run buildA full production build