React·100 questions

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?

More questions in this topic

Related questions from other topics