SpinTheMic
Pro

Interview practice question

An unreliable React codebase with few tests

Frontend Engineering · React · Experienced

Your React app breaks frequently after changes, and there are few tests. How would you introduce testing effectively?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Prioritise critical user journeys.
  • Component tests with Testing Library (behaviour).
  • E2E for key flows (Playwright).
  • Mock network at boundary (MSW).
  • Add tests with bug fixes; CI gate.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics