Finding
The core docs route src/app/docs/[...slug]/ was the biggest impactful coverage gap in the repo: 51.3% stmts / 32.1% branch overall, with:
page.tsx generateStaticParams (lines 377-422) at 0% — the function that decides which docs pages get built at all (content-tree walk, per-project routeMap prefixing, general-section skip, HIVE_DOCS_PATH branch). A regression here silently drops pages from the static build.
generateMetadata — the hive/integrations SEO/OpenGraph block untested.
DocPage fatal branches — notFound() for unknown slugs, the MDX compile-failure <pre> fallback, and the integrations JSON-LD <script> branch.
layout.tsx (SlugLayout) at 0% — project detection from the slug and Meta-node stripping of the sidebar page map (the RSC-payload optimization).
Recommendation
Add a test file exercising all of the above via the existing docs-page-render mock scaffolding (nextra/evaluate shim, next/navigation, next/link). Done in the linked PR: src/__tests__/docs-slug-page.params-metadata.test.tsx, 9 tests, raising docs/[...slug] to 94.7% stmts / 80.7% branch (page.tsx 62.4→94.4, layout.tsx 0→96.3).
Priority
- Impact: high (static-build route selection + fatal fallbacks of every docs page)
- Effort: medium
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown
— hive: agent=quality backend=copilot model=claude-fable-5 copilot=1.0.88
Finding
The core docs route
src/app/docs/[...slug]/was the biggest impactful coverage gap in the repo: 51.3% stmts / 32.1% branch overall, with:page.tsxgenerateStaticParams(lines 377-422) at 0% — the function that decides which docs pages get built at all (content-tree walk, per-project routeMap prefixing, general-section skip,HIVE_DOCS_PATHbranch). A regression here silently drops pages from the static build.generateMetadata— thehive/integrationsSEO/OpenGraph block untested.DocPagefatal branches —notFound()for unknown slugs, the MDX compile-failure<pre>fallback, and the integrations JSON-LD<script>branch.layout.tsx(SlugLayout) at 0% — project detection from the slug and Meta-node stripping of the sidebar page map (the RSC-payload optimization).Recommendation
Add a test file exercising all of the above via the existing docs-page-render mock scaffolding (nextra/evaluate shim, next/navigation, next/link). Done in the linked PR:
src/__tests__/docs-slug-page.params-metadata.test.tsx, 9 tests, raisingdocs/[...slug]to 94.7% stmts / 80.7% branch (page.tsx 62.4→94.4, layout.tsx 0→96.3).Priority
Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-oke-11-placeholder-r05x| SHA:unknown— hive: agent=quality backend=copilot model=claude-fable-5 copilot=1.0.88