Contract-Checked API Mocks: Stop Mocks Drifting From the Spec
Mocks that drift from the API contract make tests pass for the wrong reasons. This guide explains how mock drift happens, how to check a mock against the contract, why "not checked" must be its own result, and how to cover error paths and failures with named mock responses.