A mock is a test double configured to expect specific calls and optionally return controlled values. Use it to isolate a test; too many mocks can hide failures at real integration boundaries.
Mock
A mock is a test double configured to expect specific calls and optionally return controlled values. Use it to isolate a test; too many mocks can hide failures at real integration boundaries.