-
Notifications
You must be signed in to change notification settings - Fork 152
Migrate off deprecated wp-env tests environment #2505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
11f6279
97c5e31
8540d1f
3659e9a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,7 @@ nbproject/ | |
|
|
||
| build | ||
| .wp-env.override.json | ||
| .wp-env.test.override.json | ||
| *.min.js | ||
| *.min.css | ||
| *.asset.php | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "$schema": "https://schemas.wp.org/trunk/wp-env.json", | ||
| "testsEnvironment": false, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can be removed from both configs given it's deprecated and false by default
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't seem to be the case, currently. I tried removing this, and I got the warning:
|
||
| "port": 8889, | ||
| "core": null, | ||
| "plugins": [ | ||
| "./plugins/optimization-detective", | ||
| "./plugins/auto-sizes", | ||
| "./plugins/dominant-color-images", | ||
| "./plugins/embed-optimizer", | ||
| "./plugins/image-prioritizer", | ||
| "./plugins/performance-lab", | ||
| "./plugins/speculation-rules", | ||
| "./plugins/view-transitions", | ||
| "./plugins/web-worker-offloading", | ||
| "./plugins/webp-uploads" | ||
| ], | ||
| "config": { | ||
| "WP_DEBUG": false, | ||
| "SCRIPT_DEBUG": false, | ||
| "FS_METHOD": "direct" | ||
| }, | ||
| "mappings": { | ||
| "wp-content/plugins/performance": "." | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need this mapping in non test env now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. You added this mapping for tests in db957d4 and it remains for tests in this PR, but it was moved to the
.wp-env.test.jsonconfig.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh it was there to map root files in the container since it was having test data files etc. maybe not required in runtime, and just only in tests.