Skip to main content

Testing and Quality

Baseline checks

Run these from the repo root:

pnpm lint
pnpm typecheck
pnpm build

Convex and functional testing

The repo contains Python-based tests in tests/ that target backend and integration behavior.

Examples include:

  • tests/test_convex_functions.py
  • tests/test_backend_api.py
  • tests/test_dp_api.py
  • tests/test_payment_and_addon.py

DP-specific validation

Two notable checks already exist:

DP batch smoke

pnpm dp:batch:smoke -- <event_id> <template_id> <user_id>

Organizer DP batch Playwright test

pnpm e2e:dp-batch

Useful environment variables:

  • E2E_BASE_URL
  • E2E_EVENT_ID
  • E2E_ORGANIZER_AUTH_STATE

Docs validation

For the Docusaurus docs app:

pnpm docs:build
pnpm docs:serve

Testing philosophy

  • Verify the smallest scope that proves the change.
  • Prefer real integration checks for payment, DP, and release workflows.
  • When a feature depends on external services, validate degraded behavior as well as the happy path.