Testing Structure (Frontend Standard)
This document defines how to organize tests in a feature-first frontend.
Structure (recommended default)
- Feature tests live with feature code.
- Shared component tests live with shared components.
Examples:
src/features/billing/components/BillingForm.test.tsxsrc/components/buttons/Button/Button.test.tsx
Naming
- Test files:
*.test.ts/*.test.tsx - Keep tests close to the unit under test.