update-test
OfficialUpdate failing tests to match deliberate contract changes
System Documentation
What problem does it solve?
Update-test helps teams repair test suites that fail after an intentional change to the code’s public contract, ensuring tests continue to validate the new expected behavior rather than being blindly loosened or removed.
Core Features & Use Cases
- Contract-change test alignment: Update assertions, fixtures, and golden files so tests reflect the new function/field/error shapes.
- Meaning-preserving test maintenance: Decide whether each affected test remains valuable, should be deleted cleanly, or consolidated with another test.
- Regression coverage for new edge cases: Add at least one new test covering any new validation or error behavior introduced by the contract change.
- Use case: A renamed return field or changed error type breaks existing tests after a planned refactor; update-test guides you to systematically migrate expectations and keep coverage meaningful.
Quick Start
Tell the AI to update the repository’s failing tests to match the newly intended contract change by identifying every affected assertion, updating or deleting tests as appropriate, adding new coverage for the newly introduced edge cases, and then running the full test suite plus the linter.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: update-test Download link: https://github.com/dhnt/dhnt/archive/main.zip#update-test Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.