wordpress.org/environments/package.json
Konstantin Obenland 3622a12391 Improve PHPUnit test infrastructure for the Plugin Directory.
Add a dedicated wp-env test configuration so Plugin Directory tests
run in the tests-cli container with PHPUnit 11 and Yoast Polyfills.

Props dd32, obenland.
Closes https://github.com/WordPress/wordpress.org/pull/588


git-svn-id: https://meta.svn.wordpress.org/sites/trunk@14810 74240141-8908-4e6f-9713-ba540dce6ec7
2026-04-13 17:39:15 +00:00

19 lines
887 B
JSON

{
"name": "wporg-environments",
"private": true,
"description": "Local development environments for WordPress.org",
"engines": {
"node": ">=20"
},
"scripts": {
"plugins:env": "wp-env --config plugin-directory/.wp-env.json",
"plugins:import": "npm run plugins:env -- run cli -- php wp-content/plugins/plugin-directory/bin/import-plugin.php --create --plugin",
"plugins:refresh": "npm run plugins:env -- run cli -- wp option delete wporg_env_imported && npm run plugins:env -- run cli wp eval-file wp-content/env-bin/import-plugins.php",
"plugins:test:env": "wp-env --config plugin-directory/.wp-env.test.json",
"plugins:test": "npm run plugins:test:env -- start && npm run plugins:test:env -- run tests-cli --env-cwd=wp-content/plugins/plugin-directory phpunit",
"jobs:env": "wp-env --config jobs/.wp-env.json"
},
"devDependencies": {
"@wordpress/env": "^11"
}
}