make-the-test-match-the-code
Use when a test fails after your change
Source facts
- Repository
- samugit83/cortex
- Last source activity
- September 20, 2026 at 20:32
- Detected SKILL.md language
- English
- Stars
- 1
- Forks
- 0
Install options
The review-first prompt is selected by default. You can switch to a direct command or download a local copy.
Review the source files
Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.
Showing SKILL.md
SKILL.md
Source instructions · Read-only preview- 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.
View on GitHub