Conversation
There was a problem hiding this comment.
Pull request overview
This PR migrates the testing infrastructure from a custom Docker setup to WordPress's official wp-env tool. The changes streamline the development and testing workflow by leveraging WordPress's standardized environment management, replacing custom Docker configurations with @wordpress/env.
Changes:
- Migrated from custom Docker containers to wp-env for test environment management
- Updated test mocks to support wp-env's file system constraints
- Added compatibility layer for AppContext to support multiple WPGraphQL versions
- Consolidated CI/CD workflows into a single comprehensive test workflow
Reviewed changes
Copilot reviewed 61 out of 73 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.wp-env.json |
New wp-env configuration for WordPress environment setup |
package.json |
Added npm dependencies and scripts for wp-env management |
tests/_data/mu-plugins/test-url-fixer.php |
URL rewriting logic for wp-env Docker environment |
bin/after-start.sh |
Post-start setup script for wp-env lifecycle |
codeception.dist.yml |
Updated Codeception config for wp-env module paths |
tests/wpunit/*.php |
Added mock classes to handle file uploads in wp-env |
src/Utils/Compat.php |
New compatibility layer for AppContext getter/setter methods |
src/**/*.php |
Updated to use Compat layer instead of direct AppContext property access |
.github/workflows/test.yml |
New consolidated CI workflow using wp-env |
composer.json |
Updated dependencies to wp-browser 3.7+ |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 38 out of 50 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What
Rescaffolds root dev commands, moves over to wp-env, and bumps support to php8.4 + wp6.9
Why
How
Testing Instructions
Additional Info
Checklist: