SpinTheMic
Pro

Explain it in 60 seconds

Where to mock: choosing the right boundary

Frontend Engineering · Testing and Tooling · Intermediate

How do you decide where to place mocks in frontend tests?

What a strong answer covers

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

  • Mock at system boundaries (network, time, randomness).
  • Avoid mocking your own modules heavily.
  • Network-level mocks keep more real code.
  • Mock slow/non-deterministic dependencies.
  • Over-mocking reduces confidence.
Practise this topic

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

See all topics