Skip to content

Commit be353c6

Browse files
louwie17claude
andcommitted
Scope hey-woo-tests mapping to the tests environment only
Moves the `wp-content/plugins/hey-woo-tests` directory mapping from the top-level into `env.tests.mappings` so it is only present in the wp-env tests environment. Since wp-env merges mappings across environments, the tests-cli container still gets both paths, while the development environment now only mounts the plugin once — fixing the duplicate entry in the WP admin plugins list. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bad6f99 commit be353c6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.wp-env.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"core": "WordPress/WordPress#6.9",
33
"plugins": ["https://downloads.wordpress.org/plugin/woocommerce.zip"],
44
"mappings": {
5-
"wp-content/plugins/hey-woo-tests": ".",
65
"wp-content/plugins/hey-woo": ".",
76
"wp-content/mu-plugins": "./tools/mu-plugins"
87
},
@@ -13,5 +12,12 @@
1312
},
1413
"lifecycleScripts": {
1514
"afterStart": "wp-env run cli -- wp option update woocommerce_feature_mcp_integration_enabled yes && wp-env run cli -- wp plugin activate woocommerce hey-woo && wp-env run cli -- wp wc tool run install_pages --user=admin && wp-env run cli -- wp option update woocommerce_store_address '123 Main Street' && wp-env run cli -- wp option update woocommerce_store_city 'London' && wp-env run cli -- wp option update woocommerce_store_postcode 'EC1A 1BB' && wp-env run cli -- wp option update woocommerce_default_country 'GB' && wp-env run cli -- wp option update woocommerce_currency 'GBP'"
15+
},
16+
"env": {
17+
"tests": {
18+
"mappings": {
19+
"wp-content/plugins/hey-woo-tests": "."
20+
}
21+
}
1622
}
1723
}

0 commit comments

Comments
 (0)