Skip to content

test: cover scripts/lib coverage-gap modules (#905) - #1254

Merged
castrojo merged 1 commit into
projectbluefin:mainfrom
kylerankin:quality/scripts-lib-coverage-gap
Sep 13, 2026
Merged

test: cover scripts/lib coverage-gap modules (#905)#1254
castrojo merged 1 commit into
projectbluefin:mainfrom
kylerankin:quality/scripts-lib-coverage-gap

Conversation

@kylerankin

@kylerankin kylerankin commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #905

The SBOM parser and markdown generator named in the issue already had
coverage upstream, but four shared-library modules in scripts/lib were
still untested. This adds node test suites for each, all picked up by
the existing scripts/**/*.test.js glob used by the pages.yml
test:coverage CI job.

Added

  • scripts/lib/sbom/slim.test.jsbuildSlimFrontendStreams: strips
    allPackages, preserves stream/release shape, does not mutate input.
  • scripts/lib/card-feed-parser.test.js — the markdown feed helpers:
    stripMd, extractSectionsMd, parseTwoColTableMd, parseDiffRows,
    parseCommitRows, parseFeedItem, sbomKeyForRelease,
    buildDakotaRelease, enrichFromSbom.
  • scripts/lib/monitored-repos.test.jsMONITORED_REPOS derivation
    (projectbluefin prefix + activity signal).
  • scripts/markdown-generator-bot-activity.test.js
    generateBotActivityTable (repo aggregation, prefix stripping, sorting,
    percentage, empty input).

All 31 new tests pass locally; the full suite is green. Commits are
Signed-off-by per DCO.


🐝 Hive Agent: contributor | SHA: 4cab0faa
— hive: backend=pi model=lemonade/Ornith-1.5-35B-A3B-GGUF-Q6_K

Closes projectbluefin#905. Adds node --test suites for the
shared library modules that had no test coverage:

- scripts/lib/sbom/slim.test.js — buildSlimFrontendStreams (strips
  allPackages, preserves stream shape, does not mutate input)
- scripts/lib/card-feed-parser.test.js — the markdown feed parsing helpers
  (stripMd, section extraction, two-column/diff/commit parsing, feed-item
  normalization, SBOM key/release building and enrichment)
- scripts/lib/monitored-repos.test.js — MONITORED_REPOS derivation
- scripts/markdown-generator-bot-activity.test.js — generateBotActivityTable

All suites run under the existing scripts/**/*.test.js glob used by the
pages.yml test:coverage CI job.

Signed-off-by: kylerankin <kylerankin@users.noreply.github.com>
@castrojo
castrojo added this pull request to the merge queue Sep 13, 2026
Merged via the queue into projectbluefin:main with commit d6e0b3c Sep 13, 2026
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.

[quality] coverage-gap: scripts/lib/ has 18 untested JS modules — SBOM parser and markdown generator unprotected

2 participants