Skip to content

test(docs): cover docs link checker#126

Open
echooo-agent wants to merge 1 commit into
bitrix24:mainfrom
echooo-agent:ai/add-docs-link-check-tests
Open

test(docs): cover docs link checker#126
echooo-agent wants to merge 1 commit into
bitrix24:mainfrom
echooo-agent:ai/add-docs-link-check-tests

Conversation

@echooo-agent

Copy link
Copy Markdown

Summary

  • add fixture coverage for scripts/docs-link-check.mjs
  • allow the script to run against a temporary docs root through DOCS_LINK_CHECK_ROOT
  • cover valid internal links, directory index pages, heading fragments, frontmatter links, ignored external URLs, and missing target failures

Closes #118

Tests

  • node --test scripts\__tests__\docs-link-check.test.mjs
  • node scripts\docs-link-check.mjs
  • node --test scripts\__tests__\docs-link-check.test.mjs scripts\__tests__\docs-typecheck.test.mjs (docs-typecheck integration cases skipped by existing repo prereq checks)
  • git diff --check

Note: pnpm is not installed in this sandbox, and corepack pnpm --version failed because Corepack cannot create its AppData cache here.

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.

tests: add unit coverage for scripts/docs-link-check.mjs

1 participant