Rename Block Editor JSX Test Files - #80977
Draft
ciampo wants to merge 1 commit into
Draft
Conversation
1 task
|
Size Change: 0 B Total Size: 7.76 MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
See #80855.
TL;DR: This mechanical filename-normalization slice renames the 64 remaining JSX-bearing Block Editor Jest tests from
.jsto.jsx, renames the ten Jest snapshot files whose paths depend on those test filenames, and updates the parser and executable-baseline manifests.Why?
The native Vite end state must not treat every
.jsfile as JSX. Normalizing JSX-bearing test filenames before changing their runner keeps extension changes independently reviewable and preserves the exactly-one-runner identity of every baseline test.How?
.jsxtest filenames. Git identifies all 74 moves as 100% content-preserving renames..jsbaseline from 1,152 to 1,088 files.Testing Instructions
npm run test:unit -- packages/block-editor --runInBandnpm run --workspace @wordpress/unit-tests test:unit:routingnpm run lint:jsx-extensions.jsbaseline.Testing Instructions for Keyboard
Not applicable; this changes test and snapshot filenames only.
Screenshots or screencast
Not applicable.
Use of AI Tools
This migration was implemented with Codex assistance. The rename identities, snapshot moves, diff, and verification output were reviewed before publication.