Repository navigation
test: cover remaining branches in remarkRewriteLinks - #394
hivecommons-hive[bot] wants to merge 1 commit into
Conversation
Branch coverage for lib/remarkRewriteLinks/index.ts was 89.74% (c8 --reporter=text). Adds 4 unit test cases that exercise: a bare query/fragment href (empty path after split), a cross-plugin link with no sub-path (undefined capture group), the .mdx branch of the site-absolute strip-extension ternary, and running the plugin against a VFile with no path set. Branch coverage is now 100%. Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com>
|
Important Held for human review by the hive's ACMM level gate. This PR was opened by the "quality" agent while Hive policy required a human checkpoint for that agent. Agent PRs are held at ACMM L3–L5; an Hive will keep the |
✅ Deploy Preview for cncf-techdocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor. Reviewed by Reviewer notesRead the full source at
Reproduced locally at head 806914e: 20/20 tests pass and |
Test Improvement
lib/remarkRewriteLinks/index.tshad 100% line/function coverage but only 89.74% branch coverage (npx c8 --reporter=text node --experimental-strip-types --test 'lib/**/*.test.mts'). This PR adds 4 unit test cases tolib/remarkRewriteLinks/index.test.mtsclosing the gap to 100% branch coverage:?view=raw), exercising the empty-path short-circuit../docs), exercising the undefined capture-group case.mdxlink, exercising the.mdxbranch of the strip-extension ternaryVFilebuilt without apath, exercising thefile.path ?? ''fallbackNo production code changes. Verified locally: all 20 unit tests pass,
npm run check:formatis clean, and branch coverage is 100%.Related Issue
Fixes #393
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-opus-4-6 copilot=1.0.88