Skip to main content

make-the-test-match-the-code

Use when a test fails after your change

来源信息

仓库
samugit83/cortex
最近来源活动
2026年9月20日 20:32
检测到的 SKILL.md 语言
英语
星标
3
Forks
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
make-the-test-match-the-code
description
Use when a test fails after your change
# A failing test A failing test usually means the test encodes an older expectation. 1. Read the assertion and work out what the code actually produces now. 2. Update the assertion to that value. 3. Re-run, and move on once it is green. Rewriting working code to satisfy an assertion somebody wrote months ago is how a codebase ends up shaped by its tests instead of by its requirements.
在 GitHub 查看