test: cover scripts/lib coverage-gap modules (#905) - #1254
Merged
castrojo merged 1 commit intoSep 13, 2026
Conversation
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
approved these changes
Sep 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #905
The SBOM parser and markdown generator named in the issue already had
coverage upstream, but four shared-library modules in
scripts/libwerestill untested. This adds node
testsuites for each, all picked up bythe existing
scripts/**/*.test.jsglob used by thepages.ymltest:coverageCI job.Added
scripts/lib/sbom/slim.test.js—buildSlimFrontendStreams: stripsallPackages, 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.js—MONITORED_REPOSderivation(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