Skip to content

fix(developer): keep guide redirect and contents specs in sync - #970

Merged
kevincador merged 1 commit into
masterfrom
fix/developer-guide-count-tests
Sep 30, 2026
Merged

kevincador merged 1 commit into
masterfrom
fix/developer-guide-count-tests

Conversation

@kevincador

Copy link
Copy Markdown
Contributor

The last four developer.yml runs on master failed in deno task test, so nothing has deployed since.

  • prepareGuideMarkdown.spec.ts expected 29 guides. Adding user-account-limits made it 30.
  • legacyDocsDestination.spec.ts expected 24 guides without the about- prefix, but the guide list has 26. The redirect map was missing api-use-policy (which landed on master while the redirect branch was open) and user-account-limits.

This PR:

  • Adds /docs/api-use-policy and /docs/user-account-limits to guideRedirects.json, so every guide in the list has a legacy redirect.
  • Drops the hardcoded counts from both specs. Each spec already checks every guide one by one: every guide file is listed exactly once in the contents, and every guide without the about- prefix has a redirect. A new guide without a redirect now fails with its slug instead of a bare count. The redirect spec also checks that the guide list is not empty, so its loop can't pass without running.

Validation

  • 282 tests passed.
  • Formatting, Svelte formatting, type-checking, and production build passed.

Map /docs/api-use-policy and /docs/user-account-limits to their guides so
every listed guide has a legacy redirect, and drop the hardcoded guide
counts from the contents and redirect specs. The existing per-guide
assertions already cover them, and the counts broke master whenever a
guide was added.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T08:56:03.090084Z 08015be PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kevincador
kevincador merged commit bfaa842 into master Sep 30, 2026
5 checks passed
@kevincador
kevincador deleted the fix/developer-guide-count-tests branch September 30, 2026 08:54
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.

1 participant