flowCreate.solutions

Testing Structure (Frontend Standard)

This document defines how to organize tests in a feature-first frontend.

  • Feature tests live with feature code.
  • Shared component tests live with shared components.

Examples:

  • src/features/billing/components/BillingForm.test.tsx
  • src/components/buttons/Button/Button.test.tsx

Naming

  • Test files: *.test.ts / *.test.tsx
  • Keep tests close to the unit under test.