What problem does it solve? Tests often assert implementation details, over-mock collaborators, leak shared state through beforeEach blocks, and accumulate snapshot creep, making suites brittle and untrustworthy. This Skill defines the technique for writing good tests: behavior over implementation, real code over mocks, factories over shared fixtures, and pristine output as a passing condition. ## Core Features & Use Cases - Behavior-first assertions: Assert observable outcomes with accessible queries and imperative test names instead of spying on internals. - Sociable tests with boundary mocking: Run real collaborators by default and mock only at infrastructure boundaries using MSW, pglite, memfs, fake timers, or seeded RNG. - Fixture and pyramid discipline: Use factory functions with overrides, externalize large fixtures, and follow a 70/20/10 unit/integration/E2E heuristic. - Banned practices enforcement: Blocks .only/.skip, default snapshot testing, business-layer mocks, and weak test names via companion hooks. - Use Case: When asked to add tests for a payment retry function, write a test named 'retries failed operations 3 times before giving up' that runs the real retry logic and asserts the observable attempt count rather than spying on internal calls. ## Quick Start Ask the agent to write a test for a specific function or component and it will apply behavior-first assertions, factories, and boundary-only mocking.