Principle Test Behavior Not Implementation

Apply when you write, change, or keep a test. Call the code the way its users do and assert the result they observe against a literal expected value. If the test would still pass when every imported function returns undefined, rewrite the assertion or delete the test.

alexanderop 888485e 2.6 KB Updated

File contents

alexanderop/pstack/tree/main/skills/principle-test-behavior-not-implementation commit 888485e7e7

Frequently asked questions

npx skillmds@latest add alexanderop/principle-test-behavior-not-implementation