Principle Test Behavior Not Implementation

backnotprop/pstack/skills/principle-test-behavior-not-implementation

作者 backnotprop3a604672c46cd8187d2b19980eae0a34f9f91138无许可证1.3K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库昨天更新

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.

  1. 3a604672c46cd8187d2b19980eae0a34f9f91138当前提交 3a60467发布于 2026年10月9日

来源与署名

来源:backnotprop/pstack位于skills/principle-test-behavior-not-implementation提交3a60467

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架