Repository navigation
Repair wp/5.6 branch Actions: Ignore the stale Browserslist data warning in unit tests - #84967
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
wp/5.6 branch Actions: Ignore Browserslist old-data warning in unit testswp/5.6 branch Actions: Ignore the stale Browserslist data warning in unit tests
291c4fb to
4e6aa2c
Compare
4e6aa2c to
ca4079c
Compare
Part of #82937.
What?
Sets
BROWSERSLIST_IGNORE_OLD_DATA=truebefore Jest boots, intest/unit/jest.config.js.Why?
test/unit/jest.config.jsuses@wordpress/jest-preset-default, whose@wordpress/jest-consoleassertions fail any test that logs a warning.packages/babel-preset-defaultandpackages/browserslist-configlog "Browserslist: caniuse-lite is outdated" during the run, so theJavaScriptjob fails two suites:This branch pins
browserslist@4.14.0and an equally oldcaniuse-lite. The warning depends on the data's age against today's date, so it will keep appearing on a frozen branch regardless of code changes.At this point in the stack the job stops earlier, at the
npm cifailure fixed by #84968; the warning failure shows once that's fixed.How?
Ports
wp/7.0's a468930 ("Tests: Ignore Browserslist old data warning in unit tests"). It doesn't cherry-pick cleanly because this branch's config has noprocess.env.TZline to anchor to, so the line goes after thetranspiledPackageNamesblock, as onwp/5.9(#84408) andwp/6.0(#84275).Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.