What problem does it solve?
Prevents tests from validating mock behavior, adding test-only methods to production code, and breaking tests by over-mocking or using incomplete mocks so that tests reflect real system behavior and catch real regressions.
Core Features & Use Cases
- Mock behavior prevention: Guidance to avoid asserting on mock internals and instead verify real component behavior.
- Test-only code avoidance: Patterns to move cleanup and test helpers into test utilities rather than production classes.
- Responsible mocking: Gate checks to understand dependency side effects, create complete mocks, and mock at the correct level.
- Use Case: When a developer is writing or refactoring unit or integration tests in a JavaScript/TypeScript codebase and needs to ensure tests remain reliable and maintainable.
Quick Start
Analyze my failing or fragile test and rewrite it to assert real behavior, unmock the component, or move test-only cleanup into test utilities as appropriate.