Repository navigation
Repair wp/6.1 branch Actions: Ignore the stale Browserslist data warning in unit tests - #84253
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 |
|
Size Change: 0 B Total Size: 1.26 MB ℹ️ View Unchanged
|
|
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. |
82712ba to
b03af97
Compare
b03af97 to
4917cf9
Compare
|
Size Change: 0 B Total Size: 1.26 MB ℹ️ View Unchanged
|
wp/6.1 branch Actions: Ignore Browserslist old-data warning in unit testswp/6.1 branch Actions: Ignore the stale Browserslist data warning in unit tests
4917cf9 to
3cb3ab1
Compare
Part of #82932.
What?
Sets
process.env.BROWSERSLIST_IGNORE_OLD_DATAintest/unit/jest.config.jsso Browserslist does not emit its 'caniuse-lite is outdated' warning during Jest runs.Why?
This branch's
package-lock.jsonpinscaniuse-liteto1.0.30001434(November 2022), and this branch doesn't receive dependency updates. That is well past Browserslist's staleness threshold, so the warning fires on every run, and@wordpress/jest-consolefails the test that triggers it.How?
Ports a468930 ("Tests: Ignore Browserslist old data warning in unit tests"), which was committed directly to
wp/7.0. It's hand-applied directly abovemodule.exports, because this branch'stest/unit/jest.config.jshas noprocess.env.TZ = 'UTC';line to anchor to.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.