Skip to content

Repair wp/6.1 branch Actions: Ignore Browserslist old-data warning in unit tests - #105

Closed
desrosj wants to merge 1 commit into
fix-actions-6.1/configure-composer-advisory-policyfrom
fix-actions-6.1/ignore-browserslist-old-data
Closed

desrosj wants to merge 1 commit into
fix-actions-6.1/configure-composer-advisory-policyfrom
fix-actions-6.1/ignore-browserslist-old-data

Conversation

@desrosj

@desrosj desrosj commented Aug 27, 2026 •

Copy link
Copy Markdown
Owner

What?

Sets process.env.BROWSERSLIST_IGNORE_OLD_DATA in test/unit/jest.config.js so Browserslist does not emit its 'caniuse-lite is outdated' warning during Jest runs.

Why?

This branch's caniuse-lite dependency is pinned (via package-lock.json) to 1.0.30001434, last updated in November 2022, and this branch does not receive routine dependency updates. Browserslist's staleness threshold for its warning is a few months, so this dependency is now very likely well past that threshold and the warning is very likely actively firing during unit test runs, though this was not independently confirmed by running the test suite. Regardless of whether it is currently firing, the warning can only ever become more accurate over time on a branch that never updates caniuse-lite, so silencing it is a safe, low-risk change either way.

How?

Attempted to cherry-pick WordPress@a468930 ("Tests: Ignore Browserslist old data warning in unit tests"), which conflicted because this branch's test/unit/jest.config.js has no process.env.TZ = 'UTC'; line to anchor the change after (this branch predates that addition). Hand-applied the same two-line BROWSERSLIST_IGNORE_OLD_DATA insertion directly above module.exports instead.

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.

@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from 351346d to 786f722 Compare August 27, 2026 14:58
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from 786f722 to 63a581b Compare September 11, 2026 00:01
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from 63a581b to 1a1865d Compare September 11, 2026 00:25
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from 1a1865d to a1f66cb Compare September 11, 2026 01:22
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from a1f66cb to 3441c77 Compare September 11, 2026 02:16
@desrosj
desrosj removed this pull request from stack #107 September 13, 2026 01:31
@desrosj
desrosj added this pull request to stack #323 September 13, 2026 01:31
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from 3441c77 to 7e7afaa Compare September 14, 2026 01:33
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from 7e7afaa to a427994 Compare September 14, 2026 01:40
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from a427994 to b9b1c64 Compare September 15, 2026 21:22
@desrosj
desrosj removed this pull request from stack #323 September 21, 2026 21:42
@desrosj
desrosj changed the base branch from fix-actions-6.1/single-node-version-testing to wp/6.1 September 21, 2026 21:42
@desrosj
desrosj changed the base branch from wp/6.1 to fix-actions-6.1/single-node-version-testing September 21, 2026 21:48
@desrosj
desrosj added this pull request to stack #425 September 21, 2026 21:48
@desrosj
desrosj removed this pull request from stack #425 September 21, 2026 23:47
@desrosj
desrosj changed the base branch from fix-actions-6.1/single-node-version-testing to wp/6.1 September 21, 2026 23:48
@desrosj
desrosj changed the base branch from wp/6.1 to fix-actions-6.1/single-node-version-testing September 21, 2026 23:57
@desrosj
desrosj added this pull request to stack #443 September 21, 2026 23:57
@desrosj
desrosj removed this pull request from stack #443 September 22, 2026 00:49
@desrosj
desrosj added this pull request to stack #451 September 22, 2026 01:02
@desrosj
desrosj added this pull request to stack #488 September 23, 2026 01:47
@desrosj
desrosj removed this pull request from stack #488 September 23, 2026 21:32
@desrosj
desrosj changed the base branch from fix-actions-6.1/update-php-test-matrix to wp/6.1 September 23, 2026 21:33
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from d12dfbf to 2383484 Compare September 23, 2026 21:34
@desrosj
desrosj changed the base branch from wp/6.1 to fix-actions-6.1/update-php-test-matrix September 23, 2026 21:36
@desrosj
desrosj added this pull request to stack #506 September 23, 2026 21:36
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from 2383484 to b0382a3 Compare September 24, 2026 00:40
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from b0382a3 to 61d0dd6 Compare September 24, 2026 02:18
@desrosj
desrosj removed this pull request from stack #506 September 24, 2026 18:16
@desrosj
desrosj changed the base branch from fix-actions-6.1/update-php-test-matrix to wp/6.1 September 24, 2026 18:16
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from 61d0dd6 to ea280fb Compare September 24, 2026 18:17
@desrosj
desrosj changed the base branch from wp/6.1 to fix-actions-6.1/configure-composer-advisory-policy September 24, 2026 18:17
@desrosj
desrosj added this pull request to stack #520 September 24, 2026 18:17
@desrosj
desrosj removed this pull request from stack #520 September 28, 2026 14:34
@desrosj
desrosj added this pull request to stack #541 September 28, 2026 14:36
@desrosj
desrosj removed this pull request from stack #541 September 28, 2026 19:09
@desrosj
desrosj changed the base branch from fix-actions-6.1/configure-composer-advisory-policy to wp/6.1 September 28, 2026 19:09
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from ea280fb to 3920dec Compare September 28, 2026 19:09
@desrosj
desrosj changed the base branch from wp/6.1 to fix-actions-6.1/configure-composer-advisory-policy September 28, 2026 19:10
@desrosj
desrosj added this pull request to stack #568 September 28, 2026 19:10
@desrosj
desrosj removed this pull request from stack #568 September 29, 2026 00:26
@desrosj
desrosj changed the base branch from fix-actions-6.1/configure-composer-advisory-policy to wp/6.1 September 29, 2026 00:27
@desrosj
desrosj force-pushed the fix-actions-6.1/ignore-browserslist-old-data branch from 3920dec to 6ec28a1 Compare September 29, 2026 00:27
@desrosj
desrosj changed the base branch from wp/6.1 to fix-actions-6.1/configure-composer-advisory-policy September 29, 2026 00:28
@desrosj
desrosj added this pull request to stack #574 September 29, 2026 00:28
Sets `process.env.BROWSERSLIST_IGNORE_OLD_DATA` in
`test/unit/jest.config.js` so Browserslist does not emit its
'caniuse-lite is outdated' warning during Jest runs. This branch's
`caniuse-lite` dependency is pinned to a fixed version and never
receives updates, so the warning can only get more stale over time;
it is not actionable and would otherwise pollute test output or trip
console-output assertions in tests that check for a clean console.
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@desrosj

desrosj commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

Moved to WordPress#84253.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant