What problem does it solve?
Provides a single source of truth for applying AAA, Object Mother, and coverage-rich practices so every unit, integration, and acceptance test in the SaaS monorepo stays predictable and aligned with domain expectations.
Core Features & Use Cases
- Unified Testing Strategy: Outlines when to reach for Vitest+RTL for React components and hooks, when to run Jest for backend use cases, and when to validate flows end-to-end with Playwright.
- AAA Enforcement: Prescribes Arrange-Act-Assert structure with explicit naming for inputs, mocks, actuals, and expectations to keep every test readable and focused on behavior.
- Object Mothers & Coverage Example: Encourages reusable
*-mother.ts factories for inputs and entities while citing scenarios like duplicate resource creation and mandates 100% use case coverage with integration tests for controllers and infrastructure.
Quick Start
Use testing-patterns to plan AAA-compliant unit and integration tests for the new resource use case with Object Mother factories and Jest/Vitest coverage expectations.