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
0.0
Edges
0 out · 0 in
Tokens
80/1006/1998
$ aoe 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

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