Testing · Junior · Question 39 of 78
What is a risk of mocking too much?
- ✓Correct answer: Tests pass while the real parts no longer fit together
- 2Tests become too slow
- 3Coverage drops to zero
Explanation
Every mock is an assumption about how the real dependency behaves. Mock the boundaries (network, time, randomness), not your own modules.