Repository navigation
Repair wp/5.7 branch Actions: Ignore the stale Browserslist data warning in unit tests - #84779
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. |
35b2cb5 to
6525b65
Compare
wp/5.7 branch Actions: Ignore Browserslist old-data warning in unit testswp/5.7 branch Actions: Ignore the stale Browserslist data warning in unit tests
6525b65 to
f40e1bb
Compare
f40e1bb to
533db74
Compare
Part of #82936.
What?
Sets
BROWSERSLIST_IGNORE_OLD_DATA=trueintest/unit/jest.config.js, before Jest boots.Why?
Several packages log "Browserslist: caniuse-lite is outdated" during the unit tests.
@wordpress/jest-consoleturns that warning into a test failure. Two tests in theJavaScriptjob fail this way:packages/babel-preset-default/test/index.js›transpilation works properlypackages/browserslist-config/test/index.test.js›should not contain invalid queriesThis branch pins
browserslist@4.15.0and gets no dependency updates, so the warning only depends on how much time has passed, and it will keep coming back. This mirrorswp/7.0's fix for the same problem, a468930.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.
🤖 Generated with Claude Code