Writing Unit Tests

Use when writing or refactoring unit tests - a new test file, added cases, a flaky test, an unreadable one. Encodes behavior-first testing: one behavior per test, names that state the claim, deterministic setup, mocks only at boundaries you do not own. Use whenever a test is being written, even a quick one, and whenever a test needs a sleep, a mock of your own code, or a copy of the implementation's math.

riekelt 2fe49fb 5.2 KB Updated

File contents

riekelt/principal-engineer/tree/main/plugins/principal-engineer/skills/writing-unit-tests commit 2fe49fbc7d

Frequently asked questions

npx skillmds add riekelt-principal-engineer/writing-unit-tests