Skip to content

Normalize Block Library JSX Test Filenames - #80971

Closed
ciampo wants to merge 1 commit into
codex/vitest-72-remaining-jsx-testsfrom
codex/vitest-73-block-library-jsx
Closed

Normalize Block Library JSX Test Filenames#80971
ciampo wants to merge 1 commit into
codex/vitest-72-remaining-jsx-testsfrom
codex/vitest-73-block-library-jsx

Conversation

@ciampo

@ciampo ciampo commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

What?

See #80855.

TL;DR: Prepares Block Library for native Vitest transforms through two mechanical change classes: ten .js to .jsx test renames and executable-baseline identity mappings.

This stacked draft contains only filename and manifest changes and is based on #80970.

Why?

Ten Block Library tests contain JSX while using .js. Renaming them before the runner migration avoids making .js a permanent JSX loader contract in the Vitest execution path.

How?

  • Renames the ten parser-confirmed Block Library test files with byte-identical contents.
  • Preserves their executable baseline identities in the migration manifest.
  • Reduces the JSX-in-.js baseline from 1,187 to 1,177 files.

Runner ownership, assertions, and snapshots do not change.

Testing Instructions

  • npm run test:unit -- --runInBand packages/block-library
    • 55 files, 669 tests, and 1 snapshot pass before and after the renames.
  • npm run test:unit:routing
    • 249 Jest files and 754 Vitest files remain owned exactly once; 75 baseline paths are tracked as renames.
  • npm run test:unit:conventions
  • npm exec lint-staged -- --no-stash

Use of AI Tools

This parser-backed rename inventory, manifest update, and verification were prepared with Codex. Every rename was reviewed as 100% content-preserving before opening this draft.

@github-actions

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 7.76 MB

compressed-size-action

@github-actions

Copy link
Copy Markdown

Flaky tests detected in 397c1a4.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/30549104282
📝 Reported issues:

@ciampo ciampo closed this Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block library /packages/block-library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant