Skip to main content

Tests and checks

Run commands from the repository root after you install dependencies.

CommandCheck
pnpm typecheckServer and web app types
pnpm testAPI, service, database, and MCP tests
pnpm test:webWeb app tests in jsdom
pnpm test:allBoth test suites
pnpm buildCompile the server and build the web app

Check a change​

  1. Run the tests for the changed behavior.
  2. Run the type check.
  3. Run the app and use the changed feature.
  4. For a release, run both suites and the build.

Server tests use an in-memory database. Test helpers supply a clock for repeatable date checks. Web tests use Vitest and Testing Library. They do not replace checks in a real browser.

Update API types​

After you change API schemas or routes:

pnpm openapi

This updates web/openapi.json and web/src/api/schema.d.ts. Include both files in the change. See REST API.