Skip to content

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

Closed
desrosj wants to merge 1 commit into
fix-actions-6.4/fix-composer-platform-overridefrom
fix-actions-6.4/ignore-browserslist-old-data
Closed

desrosj wants to merge 1 commit into
fix-actions-6.4/fix-composer-platform-overridefrom
fix-actions-6.4/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 = 'true' in test/unit/jest.config.js, suppressing Browserslist's warning about its bundled caniuse-lite data being outdated.

Why?

This branch's package-lock.json pins caniuse-lite@1.0.30001513, published 2023-07-07, well past the roughly six-month threshold at which Browserslist starts printing a console.warn the first time it is consulted during a test run. @wordpress/jest-console fails any test where an unexpected console.warn occurs, so whichever suite happens to invoke Browserslist first fails, even though none of them test anything related to Browserslist or console output. This is an actively firing failure on this branch, not a defensive-only fix.

How?

Adapted by hand from commit a46893062588d0e46e001e911a9e475f994db00a ("Tests: Ignore Browserslist old data warning in unit tests"). That commit anchors its insertion right after a process.env.TZ = 'UTC'; line that does not exist in this branch's test/unit/jest.config.js, so the cherry-pick conflicted; the same two-line change was applied directly instead, immediately after the transpiledPackageNames block.

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.4/ignore-browserslist-old-data branch 2 times, most recently from f1d78e3 to 6fc593b Compare August 27, 2026 15:01
@desrosj
desrosj removed this pull request from stack #114 September 10, 2026 19:34
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from 6fc593b to 1342d3b Compare September 10, 2026 19:36
@desrosj
desrosj added this pull request to stack #188 September 10, 2026 19:37
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from 1342d3b to d91102b Compare September 10, 2026 23:59
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from d91102b to c1d17db Compare September 11, 2026 00:28
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from c1d17db to c5ff802 Compare September 11, 2026 01:12
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from c5ff802 to 4cabd66 Compare September 11, 2026 02:18
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from 4cabd66 to fd2ecc9 Compare September 11, 2026 02:28
@desrosj
desrosj removed this pull request from stack #188 September 13, 2026 00:46
@desrosj
desrosj added this pull request to stack #312 September 13, 2026 00:46
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from fd2ecc9 to 7ff7ecd Compare September 14, 2026 01:35
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from 7ff7ecd to 29e6587 Compare September 15, 2026 19:19
@desrosj
desrosj marked this pull request as ready for review September 16, 2026 00:23
@github-actions

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 removed this pull request from stack #312 September 21, 2026 18:37
@desrosj
desrosj changed the base branch from fix-actions-6.4/pin-wp-env-core-version to wp/6.4 September 21, 2026 18:37
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from 29e6587 to 922e070 Compare September 21, 2026 18:46
@desrosj
desrosj changed the base branch from wp/6.4 to fix-actions-6.4/pin-wp-env-core-version September 21, 2026 18:47
@desrosj
desrosj added this pull request to stack #432 September 21, 2026 23:24
@desrosj
desrosj removed this pull request from stack #432 September 21, 2026 23:49
@desrosj
desrosj changed the base branch from fix-actions-6.4/pin-wp-env-core-version to wp/6.4 September 21, 2026 23:50
@desrosj
desrosj changed the base branch from wp/6.4 to fix-actions-6.4/pin-wp-env-core-version September 21, 2026 23:52
@desrosj
desrosj added this pull request to stack #440 September 21, 2026 23:54
@desrosj
desrosj removed this pull request from stack #440 September 22, 2026 15:39
@desrosj
desrosj changed the base branch from fix-actions-6.4/pin-wp-env-core-version to wp/6.4 September 22, 2026 15:39
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from 47f857b to 06105a5 Compare September 22, 2026 15:44
@desrosj
desrosj changed the base branch from wp/6.4 to fix-actions-6.4/update-php-test-matrix September 22, 2026 15:44
@desrosj
desrosj added this pull request to stack #458 September 22, 2026 15:44
@desrosj
desrosj marked this pull request as draft September 22, 2026 15:48
@desrosj
desrosj removed this pull request from stack #458 September 22, 2026 20:15
@desrosj
desrosj changed the base branch from fix-actions-6.4/update-php-test-matrix to wp/6.4 September 22, 2026 20:16
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from 06105a5 to c17a033 Compare September 22, 2026 21:32
@desrosj
desrosj changed the base branch from wp/6.4 to fix-actions-6.4/update-php-test-matrix September 22, 2026 21:34
@desrosj
desrosj added this pull request to stack #482 September 22, 2026 21:34
@desrosj
desrosj removed this pull request from stack #482 September 23, 2026 01:30
@desrosj
desrosj changed the base branch from fix-actions-6.4/update-php-test-matrix to wp/6.4 September 23, 2026 01:30
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from c17a033 to d504139 Compare September 23, 2026 01:36
@desrosj
desrosj changed the base branch from wp/6.4 to fix-actions-6.4/update-php-test-matrix September 23, 2026 01:38
@desrosj
desrosj added this pull request to stack #485 September 23, 2026 01:38
@desrosj
desrosj removed this pull request from stack #485 September 24, 2026 04:44
@desrosj
desrosj changed the base branch from fix-actions-6.4/update-php-test-matrix to wp/6.4 September 24, 2026 04:45
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from d504139 to 4c34e18 Compare September 24, 2026 04:46
@desrosj
desrosj changed the base branch from wp/6.4 to fix-actions-6.4/update-php-test-matrix September 24, 2026 04:48
@desrosj
desrosj added this pull request to stack #508 September 24, 2026 04:48
@desrosj
desrosj force-pushed the fix-actions-6.4/ignore-browserslist-old-data branch from 4c34e18 to d063d89 Compare September 24, 2026 16:38
Browserslist's bundled caniuse-lite database on this branch is old
enough to print a console.warn the first time it is consulted during
a test run. @wordpress/jest-console fails any test where an
unexpected console.warn occurs, so whichever suite happens to invoke
Browserslist first fails, even though none of them test anything
related to Browserslist or console output.
@desrosj

desrosj commented Sep 28, 2026

Copy link
Copy Markdown
Owner Author

Moved to WordPress#83684. The branch is left in place.

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