Skip to content

E2E Tests: Remove unused Jest peer dependency - #83505

Merged
ciampo merged 2 commits into
codex/vitest-internal-lint-baselinefrom
codex/e2e-tests-remove-jest-peer
Sep 24, 2026
Merged

ciampo merged 2 commits into
codex/vitest-internal-lint-baselinefrom
codex/e2e-tests-remove-jest-peer

Conversation

@ciampo

@ciampo ciampo commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Stacked on #83502. See #83089, step 1 dependency cleanup.

What?

Remove the unused Jest peer dependency from @wordpress/e2e-tests.

Why?

The package contains fixtures for Playwright tests, but installing it still pulls in Jest. Neither its current source nor the published 9.21.0 fixtures use Jest.

How?

Remove the peer from the package manifest, lockfile and retained-Jest inventory. Add a package changelog entry. Fixture files stay unchanged.

Testing Instructions

Pack the candidate with workspace dependencies converted to published versions, then install it in an empty npm project. Confirm that Jest is absent and the plugins, mu-plugins and assets directories are present. Installing released @wordpress/e2e-tests@9.21.0 in an empty project provides the comparison: it automatically installs Jest.

Local verification

The released package installed Jest 30.5.2; the packed candidate installed without Jest. All 317 fixture files matched the published package byte for byte. The candidate consumer audit reported no vulnerabilities.

Build, JavaScript lint, package metadata, lockfile, dependency alignment, published dependency, test routing and convention checks passed. The repository audit reported 45 existing advisories; this change leaves its resolved dependency graph unchanged.

Use of AI Tools

Codex implemented the removal and ran the package and repository checks.

@github-actions github-actions Bot added the [Package] E2E Tests /packages/e2e-tests label Sep 24, 2026
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

🏷️ Labels

This pull request needs exactly one label indicating its type, and has 0.

  • Required: any label starting with [Type].
  • Found: none.

Read more about Type labels in Gutenberg. If you cannot add labels yourself, a reviewer can do it for you.

📦 Bundle size

Size Change: 0 B

Total Size: 8.22 MB

5bf9404 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 20cbef1 codex/vitest-internal-lint-baseline % Change
timeToFirstByte 54.95 ms +5.46% -7.92% 50.65 ms +7.8% -1.88% 8.49%
largestContentfulPaint 92 ms +4.35% -4.35% 88 ms +9.09% -6.82% 4.55%
lcpMinusTtfb 37.7 ms +17.24% -10.61% 33.85 ms +20.24% -3.99% 11.37%
wpBeforeTemplate 26.41 ms +7.35% -8.86% 24.81 ms +2.66% -5.88% 6.45%
wpTemplate 23.64 ms +4.4% -4.1% 22.79 ms +8.34% -4.12% 3.73%
wpTotal 50.75 ms +4.85% -7.82% 46.97 ms +7.79% -2.09% 8.05%
wpMemoryUsage 7.61 MB +0% -0% 7.60 MB +0% -0% 0.08%
wpDbQueries 17 +0% -0% 17 +0% -0% 0%

front-end-classic-theme

Metric 20cbef1 codex/vitest-internal-lint-baseline % Change
timeToFirstByte 42.55 ms +6.35% -3.29% 41.3 ms +5.93% -5.45% 3.03%
largestContentfulPaint 96 ms +4.17% -4.17% 94 ms +8.51% -6.38% 2.13%
lcpMinusTtfb 54.2 ms +3.97% -4.34% 52.4 ms +6.49% -6.87% 3.44%
wpBeforeTemplate 21.72 ms +4.51% -4.97% 20.77 ms +5.25% -2.07% 4.57%
wpTemplate 17.72 ms +5.14% -4.18% 17.02 ms +3.64% -7.34% 4.11%
wpTotal 39.21 ms +6.27% -2.98% 37.99 ms +6.45% -4.95% 3.21%
wpMemoryUsage 6.22 MB +0% -0% 6.22 MB +0% -0% 0.04%
wpDbQueries 14 +0% -0% 14 +0% -0% 0%

media-processing

Metric 20cbef1 codex/vitest-internal-lint-baseline % Change
mediaProcessingJpeg 395.69 ms +1.83% -2.51% 387.78 ms +2.77% -0.23% 2.04%
mediaProcessingAvif 5639.28 ms +0.15% -0.34% 5635.59 ms +0.24% -0.15% 0.07%
mediaProcessingJpegToAvif 3837.91 ms +0.27% -0.58% 3826.94 ms +0.35% -0.15% 0.29%

media-upload

Metric 20cbef1 codex/vitest-internal-lint-baseline % Change
jpegUploadProcessing 1457.76 ms +2% -1.32% 1430.48 ms +1.52% -1.41% 1.91%
pngUploadProcessing 211.94 ms +33.6% -9.5% 224.16 ms +2.58% -14.76% -5.45%
largeJpegUploadProcessing 1427.18 ms +0.24% -0.95% 1417.07 ms +0.65% -0.71% 0.71%
multipleImageUploadProcessing 2036.41 ms +1.28% -21.91% 1554.32 ms +10.46% -1.45% 31.02%

post-editor

Metric 20cbef1 codex/vitest-internal-lint-baseline % Change
serverResponse 321.24 ms +0.82% -2.95% 321.01 ms +5.13% -10.14% 0.07%
firstPaint 152.91 ms +14.91% -8.27% 168.04 ms +9.67% -20.96% -9%
domContentLoaded 831.98 ms +1.76% -0.97% 837.16 ms +0.96% -1.69% -0.62%
loaded 833 ms +1.76% -0.97% 838.17 ms +0.97% -1.66% -0.62%
firstContentfulPaint 354.96 ms +1.66% -2.9% 348.23 ms +4.57% -4.27% 1.93%
firstBlock 2442.68 ms +1.13% -0.7% 2414.58 ms +0.35% -0.62% 1.16%
type 15.18 ms +5.93% -2.37% 15.4 ms +1.56% -0.65% -1.43%
typeWithoutInspector 15.41 ms +6.62% -4.87% 15.25 ms +9.38% -4% 1.05%
typeWithTopToolbar 18.59 ms +4.25% -4.03% 19.96 ms +6.41% -1.75% -6.86%
typeContainer 7.15 ms +4.2% -6.71% 6.68 ms +5.54% -4.49% 7.04%
focus 53.07 ms +12.34% -4.07% 54.92 ms +10.16% -6.06% -3.37%
firstFocus 152.1 ms +0% -0% 150.7 ms +0% -0% 0.93%
selectAll 393.55 ms +1.84% -2.02% 398.51 ms +2.19% -2.33% -1.24%
listViewOpen 47.51 ms +7.91% -9.43% 46.19 ms +8.85% -9.01% 2.86%
inserterOpen 19.32 ms +12.94% -6.88% 20.19 ms +2.33% -3.17% -4.31%
inserterHover 1.74 ms +10.92% -4.6% 1.89 ms +6.35% -10.58% -7.94%
inserterSearch 6.41 ms +4.84% -1.87% 6.57 ms +9.89% -3.5% -2.44%
loadPatterns 490.34 ms +3.51% -3.82% 497.47 ms +6.35% -6.37% -1.43%
wpTotal 311.7 ms +1.16% -2.8% 312.45 ms +5.12% -10.47% -0.24%
wpMemoryUsage 13.14 MB +0% -0% 13.14 MB +0% -0% 0.01%
wpDbQueries 54 +0% -0% 54 +0% -0% 0%

site-editor

Metric 20cbef1 codex/vitest-internal-lint-baseline % Change
serverResponse 410.8 ms +2.84% -6.42% 421.44 ms +2.31% -11.44% -2.52%
firstPaint 234.28 ms +11.69% -4.74% 212.53 ms +16.77% -9.68% 10.23%
domContentLoaded 1152.53 ms +1.45% -1.58% 1139.15 ms +1.29% -1.09% 1.17%
loaded 1153.86 ms +1.45% -1.59% 1140.41 ms +1.28% -1.1% 1.18%
firstContentfulPaint 471.44 ms +3.08% -3.68% 463 ms +2.07% -3.8% 1.82%
firstBlock 4053.87 ms +0.79% -0.88% 4002.58 ms +1.28% -0.52% 1.28%
type 20.21 ms +3.56% -5.34% 19.22 ms +4.27% -2.29% 5.15%
navigate 121.45 ms +6.27% -2.1% 113.28 ms +3.81% -1.44% 7.21%
loadPatterns 1232.74 ms +7.16% -2.6% 1304.26 ms +7.56% -4.79% -5.48%
loadPages 1114.92 ms +1.69% -0.32% 1116.2 ms +0.89% -2.4% -0.11%
wpTotal 399.95 ms +2.91% -6.59% 409.9 ms +2.47% -11.66% -2.43%
wpMemoryUsage 12.11 MB +0% -0% 12.10 MB +0% -0% 0.01%
wpDbQueries 43.5 +1.15% -1.15% 43 +2.33% -0% 1.16%

5bf9404 Run

@ciampo ciampo self-assigned this Sep 24, 2026
@ciampo
ciampo marked this pull request as ready for review September 24, 2026 17:19
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ciampo <mciampini@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@ciampo
ciampo merged commit b075865 into codex/vitest-internal-lint-baseline Sep 24, 2026
46 of 47 checks passed
@ciampo
ciampo deleted the codex/e2e-tests-remove-jest-peer branch September 24, 2026 17:20
ciampo added a commit that referenced this pull request Sep 25, 2026
* E2E Tests: Remove unused Jest peer dependency

* E2E Tests: Link Jest peer cleanup changelog
ciampo added a commit that referenced this pull request Sep 25, 2026
…ndencies (#83502)

* Tests: Switch internal linting to the Vitest baseline

* Tests: Simplify internal lint verification

* E2E Tests: Remove unused Jest peer dependency (#83505)

* E2E Tests: Remove unused Jest peer dependency

* E2E Tests: Link Jest peer cleanup changelog

* Tests: Address Vitest lint migration feedback

---

Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org>
widoz pushed a commit to widoz/gutenberg that referenced this pull request Oct 2, 2026
…ndencies (WordPress#83502)

* Tests: Switch internal linting to the Vitest baseline

* Tests: Simplify internal lint verification

* E2E Tests: Remove unused Jest peer dependency (WordPress#83505)

* E2E Tests: Remove unused Jest peer dependency

* E2E Tests: Link Jest peer cleanup changelog

* Tests: Address Vitest lint migration feedback

---

Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] E2E Tests /packages/e2e-tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant