Skip to content

test(concepts): remove 9 orphaned fetch-concepts unit tests (#1327) - #1570

Merged
jung-thomas merged 1 commit into
mainfrom
worktree-fix-orphaned-concept-tests
Aug 9, 2026
Merged

test(concepts): remove 9 orphaned fetch-concepts unit tests (#1327)#1570
jung-thomas merged 1 commit into
mainfrom
worktree-fix-orphaned-concept-tests

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Problem

CI unit tests are failing on main (run 31327698582): 9 failed suites, 974 passed.

All 9 failures are collection-time errors, not assertions:

Error: Cannot find module '../../../scripts/fetch-concepts.ts'
  imported from test/unit/scripts/fetch-concepts*.test.ts

Root cause

Commit 779a305d (#1567retire legacy Hugo concept path + LEGACY_CONCEPT_RENDER) deleted the 455-line scripts/fetch-concepts.ts, but left its 9 test files behind:

  • fetch-concepts.test.ts
  • fetch-concepts-{api-docs,blog-posts,community-events,crosslinks,help-docs,missions,samples,videos}.test.ts

Each imports only yamlEscape / frontmatter / ConceptPayload from the deleted module. Those functions emitted Hugo concept-page frontmatter — a path that is now permanently retired (rollback is a code revert, not a flag), so there is no live module to repoint the imports to.

Fix

Delete the 9 orphaned test files. No production code changed. The only non-test reference to fetch-concepts in live code (scripts/publish-content.ts:932) is a comment.

Verification

npx vitest run --project unit test/unit/scripts/13 files, 106 tests passed (was 9 failed suites before the change).

Commit 779a305 (#1567, retire legacy Hugo concept path) deleted
scripts/fetch-concepts.ts but left its 9 test files behind. They import
yamlEscape/frontmatter/ConceptPayload from the now-deleted module, so
vitest fails at collection with "Cannot find module
../../../scripts/fetch-concepts.ts" — 9 failed suites on main.

The tested functions emitted Hugo concept-page frontmatter, which is
permanently retired (rollback = code revert, not a flag), so there is
no live module to repoint to. Delete the dead tests.
@jung-thomas
jung-thomas merged commit f2cab99 into main Aug 9, 2026
3 checks passed
@jung-thomas
jung-thomas deleted the worktree-fix-orphaned-concept-tests branch August 9, 2026 18:38
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