Skip to content

Testing

Terminal window
pnpm test
pnpm typecheck
pnpm lint
pnpm build

pnpm test runs package tests and the script tests (pnpm run test:scripts). API tests use Vitest with @cloudflare/vitest-pool-workers against a simulated D1/R2. The admin has Vitest tests and a Playwright E2E suite in apps/admin/e2e.

For Astro integration changes, also test: a new project, an existing project, a project with custom pages, re-running the installer, updating an untouched and a modified managed file, and a Cloudflare deployment.