Conversation
Additional changes included here:
* `babel-plugin-tester` v12.0.0-canary.2 is needed for compatability
with jest v30.
* `packages/forms` was using `--testPathPattern`, which got renamed to
`--testPathPatterns`.
* The default resolver no longer accepts a `Set` for `conditions`, it
needs to be an array now.
* `jsdom` 26 is brought in by `jest-environment-jsdom`, which needs a
bunch of fixes:
* It makes it basically impossible to spy/mock `window.location`
methods directly. Use shims that can be mocked instead.
* It breaks a few tests that were trying to mock `window`. For these,
we can just assign the properties we need or do more targeted
mocking.
* It changes `getComputedStyle()` to return like `rgb(255, 255, 255)`
rather than `white`.
* It seems to need an "End" key press in a `user.type()` in one
place. 🤷
* May as well update our one direct `jsdom` dep to match.
* pnpmfile hack for `babel-plugin-istanbul`→`test-exclude` to avoid some
deprecated indirect dependencies.
Unfortunately we still have jest 29 in two places:
`@storybook/test-runner` (in js-packages/storybook) and `ts-jest` (in
plugins/super-cache) haven't been updated yet.
`ts-jest` and `@storybook/test-runner` still use Jest v29, but seem to work (at least for our purposes) when pnpmfile-hacked to v30. Doing that cleans up some deprecated dependencies of Jest v29, and makes for less that devs will have to download on a `pnpm install`.
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Boost plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Starter Plugin plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Super Cache plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Automattic For agencies client plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Classic Theme helper plugin plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
There was a problem hiding this comment.
CI is happy. Noting that I got this when running pnpm; perhaps we need to bump $NODE_VERSION in .github/versions.sh to at 22.12?
Your Node version is incompatible with "babel-plugin-tester@12.0.0-canary.2(@babel/core@7.27.4)(jest@30.0.0)".
Expected version: ^20.18.0 || ^22.12.0 || >=23.3.0
Got: v22.11.0
Once I upgraded Node, I'm back to this when running super-cache tests, presumably because the super-cache e2e fix is not in this branch:
✔ Network super-cache-e2e_default Created 0.1s
✘ Container super-cache-e2e-db-1 Error 102.3s
✔ Container super-cache-e2e-wordpress-1 Created 0.1s
dependency failed to start: container super-cache-e2e-db-1 is unhealthy
ELIFECYCLE Command failed with exit code 1.
makes for less that devs will have to download
🥳
Ugh. Yeah, we'll need to do that before doing these.
Oops, yeah. |
|
I'm still getting failures on DetailsFAIL specs/settings/not-logged-in.test.ts ● Test suite failed to run |
|
|
`@storybook/test-runner` still uses Jest v29, but seems to work (at least for our purposes) when pnpmfile-hacked to v30. Doing that cleans up some deprecated dependencies of Jest v29, and makes for less that devs will have to download on a `pnpm install`.
Proposed changes:
@storybook/test-runnerstill uses Jest v29, but seems to work (at least for our purposes) when pnpmfile-hacked to v30. Doing that cleans up some deprecated dependencies of Jest v29, and makes for less that devs will have to download on apnpm install.Other information:
Jetpack product discussion
None
Does this pull request change what data or activity we track or use?
No
Testing instructions:
Super-cache E2Es still work?