Repository navigation
test: credit validate.js coverage and close remaining gaps - #122
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 05b10b1a17
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-authored-by: Cursor <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-authored-by: Cursor <[email protected]>
05b10b1 to
939707b
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Builds on #121, merge that first.
Summary
VALIDATE_ROOTenv override +readEntries(path.join(root, 'data'))socatalog.test.jsruns the realscripts/validate.jsagainst the fixture. No duplicate tests; c8 now attributes error-path coverage toscripts/validate.jsinstead of a temp copy.watch,check-star-list, anddiscovertests for missed branches/CLI dry-run paths (fetch stubbed; no network).WATCH_ROOToverride lets the real watch CLI read a temporary catalog and verify that dry-run leaves its state file byte-identical.Coverage (Codecov #121 head → local after)
Total local lines: 94.17%.
Skipped lines
watch.js: live issue open/comment paths and non-dryrunWatchCLI catch (need real issue API beyond existing stubs).check-star-list.js: defaultrunGhexec, missing-repo draft loop insidemain, non-drysyncIssuepath.discover.js:searchCandidatesitem loop + 2.2s delay, fork release probing, dry-run excluded-interesting rows, non-dryGITHUB_REPOSITORYrequired path, CLImain().catch.Bugs found: none.
Test plan
npm run coveragepasses locally🤖 Generated with Claude Code
Made with Cursor