What to test: unit, integration, or e2e?
Answer
•Unit — pure functions/reducers.
•Integration — components with interaction.
•E2E — critical user flows.
•Do not try to cover everything with e2e.
•Balance depends on risk and testing cost.
Was this answer helpful?