Refactor Efficiently
Safely refactor APIs, call signatures, and cross-cutting behavior by validating one test before updating all.
Usage
/refactor-efficiently <package-name>
Process
- •Mark one representative test as
.only - •Implement the new pattern in that test
- •Run
npm testuntil it passes - •Update remaining tests to match
- •Remove
.onlyand run full suite
Rules
- •Never update all tests simultaneously
- •Never leave
.onlyin committed code - •Never create backward-compatible shims to avoid test updates