Test: Remove final Jest infrastructure - #80999
Draft
ciampo wants to merge 4 commits into
Draft
Conversation
1 task
ciampo
force-pushed
the
codex/vitest-consolidated-07-tooling-cutover
branch
from
July 30, 2026 23:48
8507291 to
0736a6c
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-08-final-cleanup
branch
from
July 30, 2026 23:49
06e8f75 to
c03e2cb
Compare
|
Size Change: 0 B Total Size: 7.76 MB |
ciampo
force-pushed
the
codex/vitest-consolidated-07-tooling-cutover
branch
from
July 31, 2026 00:38
0736a6c to
5c17b09
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-08-final-cleanup
branch
from
July 31, 2026 00:38
7380e39 to
7ce2eb3
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-07-tooling-cutover
branch
from
July 31, 2026 01:12
5c17b09 to
882d7e9
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-08-final-cleanup
branch
from
July 31, 2026 01:12
7ce2eb3 to
71a5165
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-07-tooling-cutover
branch
from
July 31, 2026 01:20
882d7e9 to
e3afccd
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-08-final-cleanup
branch
from
July 31, 2026 01:20
3ad5f03 to
db61f4f
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-07-tooling-cutover
branch
from
July 31, 2026 01:39
e3afccd to
ff264cb
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-08-final-cleanup
branch
from
July 31, 2026 01:39
db61f4f to
26d6214
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-07-tooling-cutover
branch
from
July 31, 2026 01:45
ff264cb to
6788c48
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-08-final-cleanup
branch
from
July 31, 2026 01:45
26d6214 to
dd328ce
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-07-tooling-cutover
branch
from
July 31, 2026 02:06
6788c48 to
1564d5c
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-08-final-cleanup
branch
from
July 31, 2026 02:07
dd328ce to
e05a65d
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-07-tooling-cutover
branch
from
July 31, 2026 02:57
1564d5c to
d197289
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-08-final-cleanup
branch
from
July 31, 2026 02:57
92e415a to
7c86608
Compare
|
Flaky tests detected in 7c86608. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/30600328874
|
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?
Part of #80855.
TL;DR: This is the final cleanup: it removes the retired Jest packages, configuration, dependencies, types, lint rules, migration manifest, and early Vitest probes, then adds durable project-routing and no-Jest CI invariants.
This PR is stacked on #80998 and should be reviewed after it.
Why?
Once the repository and published tooling run on Vitest, keeping two runners and transitional probes makes the supported test path ambiguous and leaves obsolete dependencies/configuration in active use.
How?
@wordpress/jest-console,@wordpress/jest-preset-default, the private Jest configuration/reporters/transforms, and direct Jest dependencies.fast-globfor single-pass config-time discovery, preserving the exact inventory while avoiding repeated legacyglobscans.Intentional allowlist
@testing-library/jest-dom,eslint-plugin-jest-dom, and the compatible Emotion serializer remain because they are runner-neutral.packages/report-flaky-testsremains an explicit exception because it parses legacy Jest result files; historical documentation and release fixtures are also out of scope.Testing Instructions
npm run test:unit:no-jest.npm run test:unit:conventions.npm run test:unit -- --runtwice.npm run test:unit:date -- --run.npm run test:unit:packagesandnpm run lint:package-contents.npm run lint:js -- --quiet,npm run lint:pkg-json, andnpm run lint:lockfile.npm run lint:published-deps.A fresh clean complete run on the final rebased head passed all 1,001 files and 34,753 tests (8 skipped). All six timezone/locale date variants passed, and the published dependency audit reported zero findings across 130 packages.
npm run lint:depscontinues to report the pre-existingyargsversion split betweenpackages/envand the rest of the repository.Cumulative migration statistics
Measured once across the complete linear stack, from trunk merge-base
8e2fc46through this head7c86608, so stacked PR diffs are not double-counted:.js→.jsxrenames.vitest. Across all repository manifests, 11 direct dependency names are newly present and 17 are eliminated.@wordpress/vitest-consoleand@wordpress/vitest-preset-default.New direct dependency names:
@flakiness/vitest,@swc/plugin-emotion,@vitejs/plugin-react-swc,@vitest/browser-playwright,@vitest/eslint-plugin,@wordpress/vitest-console,@wordpress/vitest-preset-default,jsdom,playwright,vitest, andvitest-browser-react.Eliminated direct dependency names:
@flakiness/jest,@jest/globals,@types/jest,@wordpress/jest-console,@wordpress/jest-preset-default,babel-jest,babel-plugin-transform-import-meta,eslint-plugin-jest,jest,jest-environment-jsdom,jest-environment-node,jest-jasmine2,jest-junit,jest-matcher-utils,jest-mock,jest-watch-typeahead, andsnapshot-diff.Performance comparison and acceptance
The local comparison uses the same 110-test date file, one warm-up, five single-worker process runs, and three interactive hot reruns:
A contemporaneous GitHub Actions comparison of the four JavaScript shards shows a regression: the rebased predominantly-Jest boundary took 5m20s wall time, while the rebased final Vitest head took 6m09s (+49s, +15%). Both runs started together, reducing runner-load skew. All four final shards, the date matrix, and the Jest-removal/type invariants passed.
Testing Instructions for Keyboard
Not applicable; this PR does not change UI behavior.
Screenshots or screencast
Not applicable.
Use of AI Tools
Codex was used to implement and verify this migration PR.