Skip to content

Commit 16df352

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 55eebcb commit 16df352

File tree

19 files changed

+354
-337
lines changed

19 files changed

+354
-337
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This is an alpha version! The changes listed here are not final.
1414
- Slideshow: Ensure slideshows do not stretch to parent container width on mobile if no list height is set.
1515

1616
### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
17+
- =
1718
- Forms: update E2E test to match new form submission confirmation heading.
1819
- Tests: Add coverage for modules added to sync configuration mid-progress.
1920
- Update composer lock following Publicize changes.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"automattic/jetpack-sync": "^4.25.0-alpha",
5656
"automattic/jetpack-videopress": "^0.33.2-alpha",
5757
"automattic/jetpack-waf": "^0.27.9",
58-
"automattic/woocommerce-analytics": "^0.13.4"
58+
"automattic/woocommerce-analytics": "^0.13.5-alpha"
5959
},
6060
"require-dev": {
6161
"antecedent/patchwork": "^2.2",

jetpack_vendor/automattic/jetpack-backup/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ This is an alpha version! The changes listed here are not final.
1212
### Changed
1313
- Update package dependencies.
1414

15+
### Removed
16+
- =
17+
1518
## [4.2.36] - 2026-01-12
1619
### Changed
1720
- Update package dependencies. [#46456]

jetpack_vendor/automattic/jetpack-backup/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
"extends @wordpress/browserslist-config"
2929
],
3030
"dependencies": {
31-
"@automattic/jetpack-analytics": "^1.0.6",
32-
"@automattic/jetpack-api": "^1.0.13",
33-
"@automattic/jetpack-components": "^1.4.4",
34-
"@automattic/jetpack-connection": "^1.4.25",
35-
"@automattic/jetpack-shared-extension-utils": "^1.4.4",
36-
"@automattic/number-formatters": "^1.0.15",
31+
"@automattic/jetpack-analytics": "^1.0.7-alpha",
32+
"@automattic/jetpack-api": "^1.0.14-alpha",
33+
"@automattic/jetpack-components": "^1.4.5-alpha",
34+
"@automattic/jetpack-connection": "^1.4.26-alpha",
35+
"@automattic/jetpack-shared-extension-utils": "^1.4.5-alpha",
36+
"@automattic/number-formatters": "^1.0.16-alpha",
3737
"@tanstack/react-query": "5.90.8",
3838
"@wordpress/api-fetch": "7.37.0",
3939
"@wordpress/components": "31.0.0",
@@ -59,7 +59,6 @@
5959
"@wordpress/browserslist-config": "6.37.0",
6060
"concurrently": "9.2.1",
6161
"jest": "30.2.0",
62-
"jest-environment-jsdom": "30.2.0",
6362
"sass-embedded": "1.97.2",
6463
"sass-loader": "16.0.5",
6564
"storybook": "10.1.10",

jetpack_vendor/automattic/jetpack-forms/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This is an alpha version! The changes listed here are not final.
1414
- Forms: make form webhooks generally available.
1515

1616
### Changed
17+
- =
1718
- Forms: update dataviews actions to match between old and new dashboard.
1819
- Forms: update form submission confirmation page with new design.
1920
- Update package dependencies.

jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ This is an alpha version! The changes listed here are not final.
1717
- Update package dependencies.
1818

1919
### Removed
20+
- =
2021
- Remove the obsolete share limits logic.
2122

2223
### Fixed

jetpack_vendor/automattic/jetpack-paypal-payments/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
This is an alpha version! The changes listed here are not final.
1111

1212
### Changed
13+
- =
1314
- Update package dependencies.
1415

1516
## [0.6.0] - 2026-01-12

jetpack_vendor/automattic/jetpack-paypal-payments/jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module.exports = {
1616
'\\.(css|less|sass|scss)$': '<rootDir>/tests/styles-mock.js',
1717
'^../src/block/block\\.json$': '<rootDir>/tests/json-mock.js',
1818
},
19-
testEnvironment: 'jsdom',
2019
setupFilesAfterEnv: [ '<rootDir>/tests/jest.setup.js', '@testing-library/jest-dom' ],
2120
collectCoverageFrom: [
2221
'<rootDir>/src/**/*.{js,jsx,ts,tsx}',

jetpack_vendor/automattic/jetpack-publicize/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]

jetpack_vendor/automattic/jetpack-search/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This is an alpha version! The changes listed here are not final.
1313
- Instant Search: Add a "Show price" option to allow prices to be shown or hidden in Jetpack Instant Search results.
1414

1515
### Changed
16+
- =
1617
- Instant Search: Show WooCommerce product filters in filter widget.
1718
- Update package dependencies.
1819

0 commit comments

Comments
 (0)