The risk with mocked tests: The test may not test anything
The risk with mocked tests: The test may not test anything.
Example: I just reviewed a test that claimed to ensure a JSON API response was the expected shape.
The problem: The test mocked the API response.
So the test didn't actually test anything.