Commit e232a94
Replace
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@f43a5cejest-environment-jsdom with @jest/environment-jsdom-abstract (#46558)1 parent 2c61380 commit e232a94
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
0 commit comments