Skip to content

test: raise coverage on six weakest files - #121

Merged
2wenty2wo merged 1 commit into
mainfrom
test/coverage-gaps
Nov 30, 2026
Merged

2wenty2wo merged 1 commit into
mainfrom
test/coverage-gaps

Conversation

@2wenty2wo

Copy link
Copy Markdown
Owner

Summary

  • Add scripts/categories.test.js covering firmware/section helpers, GitHub URLs, labels, price/source facts, and initials
  • Extend enrich-on-push, enrich-catchup, enrich-404-issue, and firmware-watch tests for rename/error paths and CLI entrypoints
  • Wire categories.test.js into the npm test script

Coverage (lines)

File Before After
src/lib/categories.js 74.7% 100%
scripts/enrich-on-push.js 66.3%* / 76.8% local 100%
scripts/validate.js 60.2%* / 100% local 100%
scripts/firmware-watch.js 80.4% 97.3%
scripts/enrich-404-issue.js 77.1% 100%
scripts/enrich-catchup.js 60.5% 100%

* Codecov baseline; local pre-change for validate was already 100% lines under c8.

Total local coverage after: 92.75% lines.

Skipped: firmware-watch.js lines 206-208, 214-216 (live syncFirmwareIssue success path when dry-run finds flags / non-dry sync with token) — would need seeded catalog mentions or broader fetch-stubbed CLI; already ≥90%.

Test plan

  • npm run coverage passes locally
  • CI Catalog PR checks pass

🤖 Generated with Claude Code

Made with Cursor

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T21:47:47.053149Z 2710daf PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@2wenty2wo
2wenty2wo merged commit 1adb08f into main Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant