Frameworks
We use the following frameworks:- E2E tests: Playwright
- API integration tests: Bun (functional tests)
Running tests
API Integration tests
Bun integration tests are located intests/ (root directory) and test API endpoints with real database connections.
E2E tests
E2E tests are located ine2e/tests/ and test the full application flow in a real browser environment.
Note: Playwright browsers are automatically installed via postinstall script when dependencies are installed.
Prerequisites:
- Set up environment variables in
e2e/.env(seee2e/README.mdfor details) - Ensure PostgreSQL database is running and schema is initialized
Note: Before running other E2E tests, authenticate first by running bun run test:e2e:auth-setup to save authenticated state.
GitHub Actions
Each test suite has a corresponding GitHub Action workflow which run daily. Each workflow supportsworkflow_dispatch, which enables manual runs against committed branches.