Skip to content

Commit e232a94

Browse files
anomiexmatticbot
authored andcommitted
Replace jest-environment-jsdom with @jest/environment-jsdom-abstract (#46558)
Jest has introduced a package `@jest/environment-jsdom-abstract` that can use a specified version of `jsdom` instead of being stuck with the one it's bundled with. Let's use that. Most of our projects were already using a customized environment anyway, to work around jsdom not having `structuredClone`. Although most of these still had an unused `jest-environment-jsdom` dep, probably from before that was added. A few for some reason weren't; those have been fixed (and redundant `@jest-environment jsdom` comments have been removed). Then have pnpm reject attempts to re-install `jest-environment-jsdom`, so people don't accidentally re-add it. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/20965650321 Upstream-Ref: Automattic/jetpack@f43a5ce
1 parent 2c61380 commit e232a94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ This is an alpha version! The changes listed here are not final.
1414
- Move publicize-components into publicize package.
1515
- Update package dependencies.
1616

17+
### Removed
18+
- =
19+
1720
## [0.69.2] - 2026-01-12
1821
### Changed
1922
- Update package dependencies. [#46456]

0 commit comments

Comments
 (0)