Rule Testing

Integration Over Mocks

Prefer integration tests over mocking internal modules

testingintegrationmocks
CLAUDE.md

Prefer integration tests over mocking internal modules. Only mock external services, network calls, and system clocks. Internal mocks create tests that pass while the real code fails.

Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.

get crystl