Testing Pyramid
- Unit tests: utility, formatter, mapper, validation.
- Integration tests: API client + data adapter + error mapping.
- E2E tests: critical user flow (happy path + failure path).
Baseline Rules
- Every bug fix must include a regression test.
- Hindari over-mocking di integration test.
- E2E focuses on high-risk flows, not every page.
- Unit/Integration: Vitest/Jest.
- E2E: Playwright.
- Initial coverage gate target: 70% for critical modules.