refactor: staff engineer cleanup — inline thin wrappers, colocate tests#391
refactor: staff engineer cleanup — inline thin wrappers, colocate tests#391
Conversation
Inline shouldRecordBetOutcomes, shouldWriteDojoDiary, and shouldWriteDojoSession — same trivial-wrapper pattern as the 8 helpers removed in PR #390. Simplify checkExpiry type guard. Fix test names referencing removed hasObservations helper. Create colocated saved-kata-store.test.ts and remove duplicated tests from execute.test.ts. Fix import alias in session-bridge helpers test. Mutation score holds at 90.92%. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR refactors saved-kata CRUD operations and cooldown helper functions. It moves saved-kata CRUD tests from execute.test.ts to a new dedicated test suite, removes three thin wrapper helpers from cooldown-session, and inlines their logic at call sites. An import path is updated to use namespaced resolution. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Verification
Test plan
Summary by CodeRabbit
Tests
Refactor