Skip to content

Test gap analysis and gap-filling unit tests - #3

Draft
charlesberret wants to merge 1 commit into
mainfrom
cursor/test-gap-analysis-4817
Draft

charlesberret wants to merge 1 commit into
mainfrom
cursor/test-gap-analysis-4817

Conversation

@charlesberret

Copy link
Copy Markdown
Owner

Summary

Adds docs/test-gaps.md: per-package test commands and TAP summary lines, the ten highest-risk untested behaviours, and what was added in this PR.

Adds 11 new unit tests (no production code changes) for gaps ranked 1–6 in that doc:

  • leakAudit — clean build, draft route/sentinel leaks, redaction needles
  • parseFrontmatter
  • publicEntries / byTitle / entryId
  • isLoopbackHost

Test command

npm run build && npm test

Last lines of output:

# tests 15
# pass 15
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 202.254923

(Full npm test chains all workspace packages; @shellside/dev-api ends with 16 tests, @shellside/site with 15.)

Open in Web Open in Cursor 

Fixes LAB-2304

Add docs/test-gaps.md with per-package coverage summaries, ten highest-risk
gaps, and follow-ups. Add unit tests for leakAudit, parseFrontmatter,
publicEntries helpers, and isLoopbackHost without changing runtime behaviour.

Co-authored-by: Charles Berret <charlesberret@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

2 participants