ADR-006: Testing strategy
Date: 2026-04-28 Status: Accepted
Context
We need confidence without heavy test infrastructure, and we must remain compatible with a Cloudflare runtime.
Decision
- Use Vitest for unit and application tests now.
- Add runtime-aware integration testing for D1-bound flows later.
- Add Playwright for critical user journeys later.
- Require regression tests for bug fixes.
Consequences
- Most early testing focuses on domain and application boundaries.
- Infrastructure testing ramps up as D1 wiring lands.
Alternatives considered
- Only E2E tests (too slow and brittle early)
- Only unit tests (misses integration regressions later)