Skip to content

Comments

fix: generate TypeDoc before unit tests to resolve sitemap API coverage failures#416

Merged
pethers merged 2 commits intostricttypingfrom
copilot/sub-pr-407-again
Feb 21, 2026
Merged

fix: generate TypeDoc before unit tests to resolve sitemap API coverage failures#416
pethers merged 2 commits intostricttypingfrom
copilot/sub-pr-407-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 21, 2026

The api/ directory is in .gitignore and generated on-demand by TypeDoc. The Vitest unit tests for sitemap generation (tests/sitemap-generation.test.ts) assert that API docs are included in the sitemap, but the CI unit test job ran without ever generating them — causing 4 tests to fail consistently.

Changes

  • .github/workflows/javascript-testing.yml: Added npm run typedoc step between TypeScript type-checking and Vitest execution in the unit-tests job, so api/ exists when generate-sitemap.ts scans the filesystem during tests
- name: Generate TypeDoc API documentation
  run: npm run typedoc

The fix is intentionally minimal — tests already correctly validate sitemap API coverage; they just needed the prerequisite artifact to exist at runtime.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add Evening Analysis Content Validator for quality assessment fix: generate TypeDoc before unit tests to resolve sitemap API coverage failures Feb 21, 2026
Copilot AI requested a review from pethers February 21, 2026 20:45
@pethers pethers marked this pull request as ready for review February 21, 2026 20:45
@pethers pethers merged commit 49b8a5d into stricttyping Feb 21, 2026
4 checks passed
@pethers pethers deleted the copilot/sub-pr-407-again branch February 21, 2026 20:45
@github-actions github-actions bot added workflow GitHub Actions workflows ci-cd CI/CD pipeline changes deployment Deployment configuration testing Test coverage size-xl Extra large change (> 1000 lines) labels Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd CI/CD pipeline changes deployment Deployment configuration size-xl Extra large change (> 1000 lines) testing Test coverage workflow GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants