Skip to content

Fix wp-env deprecation warning: separate dev/test configs and clean up formatting#1239

Merged
ernilambar merged 3 commits into1236-fix-warningfrom
copilot/sub-pr-1237
Mar 26, 2026
Merged

Fix wp-env deprecation warning: separate dev/test configs and clean up formatting#1239
ernilambar merged 3 commits into1236-fix-warningfrom
copilot/sub-pr-1237

Conversation

Copy link
Contributor

Copilot AI commented Mar 26, 2026

@wordpress/env v11+ deprecates testsEnvironment, causing warnings. This PR introduces a dedicated .wp-env.tests.json for the test stack and removes the deprecated option from both configs.

Changes

  • .wp-env.json — 2-space indentation (per .editorconfig); removed deprecated testsEnvironment: false
  • .wp-env.tests.json — 2-space indentation; removed deprecated testsEnvironment: false
  • package.json — Added wp-env:start:tests / wp-env:stop:tests scripts and updated PHP tooling scripts to use --config=.wp-env.tests.json
  • .github/workflows/php-test.yml — Uses dedicated wp-env:start:tests npm script (with -- --xdebug=coverage for coverage runs) instead of inline --config flag, keeping CI/local behavior consistent

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Fix wp-env warning Fix wp-env deprecation warning: separate dev/test configs and clean up formatting Mar 26, 2026
Copilot AI requested a review from ernilambar March 26, 2026 05:42
@ernilambar ernilambar marked this pull request as ready for review March 26, 2026 05:47
@github-actions
Copy link

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.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @Copilot.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

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

Unlinked contributors: Copilot.

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

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

@ernilambar ernilambar merged commit 8913a87 into 1236-fix-warning Mar 26, 2026
4 checks passed
@ernilambar ernilambar deleted the copilot/sub-pr-1237 branch March 26, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants