Skill Wiki v0.1.0
anti-pattern @community/anti-pattern-test-the-mock

Test The Mock

Tests that mock every collaborator and then assert on the mock interactions (`expect(mock.send).toHaveBeenCalledWith(...)`) verify implementation details rather than behavior.…

Skill
@community
Domain
testing
Version
1.0.0
Quality
4.0
Edges
6 out · 4 in
Tokens
80/984/1915
$ prime install @community/anti-pattern-test-the-mock

Projection

Always in _index.xml · the agent never has to ask for this.

TestTheMock [anti-pattern] v1.0.0

Tests that mock every collaborator and then assert on the mock interactions (expect(mock.send).toHaveBeenCalledWith(...)) verify implementation details rather than behavior. They produce high coverage numbers but break on every refactor without catching real bugs.

Source

prime-system/examples/frontend-design/primes/compiled/@community/anti-pattern-test-the-mock/atom.yaml

Compiled at 2026-05-07