Skip to content

fix: remove duplicate test:frontmatter script key#217

Open
PathGao wants to merge 1 commit into
alecdotdev:masterfrom
PathGao:fix/duplicate-test-frontmatter-key
Open

fix: remove duplicate test:frontmatter script key#217
PathGao wants to merge 1 commit into
alecdotdev:masterfrom
PathGao:fix/duplicate-test-frontmatter-key

Conversation

@PathGao

@PathGao PathGao commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

package.json declares the test:frontmatter script twice:

"test:frontmatter": "node --test --import tsx scripts/frontMatter.test.ts scripts/frontMatterDisclosure.test.ts",
"test:frontmatter": "node --test --import tsx scripts/frontMatter.test.ts",

When JSON is parsed, the last duplicate key wins, so the second entry silently shadows the first — scripts/frontMatterDisclosure.test.ts is never executed by npm run test:frontmatter. This PR removes the second (narrower) entry and keeps the one that runs both test files.

Verification

Ran npm run test:frontmatter locally after the change: 11 tests pass, 0 fail — including the 3 disclosure-panel tests from frontMatterDisclosure.test.ts that were previously skipped.

🤖 Generated with Claude Code

package.json declared "test:frontmatter" twice; JSON parsing keeps the
last key, so the variant covering only scripts/frontMatter.test.ts
silently shadowed the one that also runs
scripts/frontMatterDisclosure.test.ts. Keep the complete variant so both
test files run under npm run test:frontmatter.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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