Mock Mirage
Kind: anti-pattern
Layer: Enforcement Core
Record: architecture:mock-mirage
Severity: discouraged
Scope: contract_compatibility, correctness_verification, observability_traceability
Formed by: Overuse mocks so tests verify internal calls rather than observable behavior or contracts.
Canonical: Ontology
A defect in which tests assert calls on mocks rather than observable behavior or contracts.
Listed in Architecture principles, after Test Pyramid Inversion and before Flaky Test Normalization.