Skip to content

Commit 8540d1f

Browse files
westonruterclaude
andcommitted
Drop redundant -- before bare wp-env-test subcommands
Use `npm run wp-env-test start` (etc.) to match the existing `npm run wp-env start` convention, keeping `--` only where a flag is passed through to wp-env (e.g. `start -- --xdebug=coverage`, `run cli -- --env-cwd=...`). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 97c5e31 commit 8540d1f

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ jobs:
6565
- name: Install WordPress and start environments
6666
run: |
6767
npm run wp-env start
68-
npm run wp-env-test -- start
68+
npm run wp-env-test start

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
run: npx playwright install chromium --with-deps
5858

5959
- name: Install WordPress
60-
run: npm run wp-env-test -- start
60+
run: npm run wp-env-test start
6161

6262
- name: Run tests
6363
env:

.github/workflows/php-test-plugins.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ jobs:
8585
- name: Install WordPress
8686
run: |
8787
if [ "${{ matrix.coverage }}" == "true" ]; then
88-
npm run wp-env-test -- start --xdebug=coverage
88+
npm run wp-env-test start -- --xdebug=coverage
8989
else
90-
npm run wp-env-test -- start
90+
npm run wp-env-test start
9191
fi
9292
- name: Composer Install
93-
run: npm run wp-env-test -- run cli --env-cwd="wp-content/plugins/$(basename $(pwd))" composer install --no-interaction --no-progress
93+
run: npm run wp-env-test run cli -- --env-cwd="wp-content/plugins/$(basename $(pwd))" composer install --no-interaction --no-progress
9494
- name: Update Composer Dependencies
9595
run: composer update --with-all-dependencies --no-interaction --no-progress
9696
- name: Install PHPUnit

AGENTS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ each defined by its own config file and running as fully isolated containers:
4646

4747
The `wp-env-test` script is shorthand for `wp-env --config=.wp-env.test.json`.
4848

49-
* Check if the environments are running: `npm run wp-env status` / `npm run wp-env-test -- status`
50-
* Start the environments: `npm run wp-env start` / `npm run wp-env-test -- start`
51-
* Stop the environments: `npm run wp-env stop` / `npm run wp-env-test -- stop`
49+
* Check if the environments are running: `npm run wp-env status` / `npm run wp-env-test status`
50+
* Start the environments: `npm run wp-env start` / `npm run wp-env-test start`
51+
* Stop the environments: `npm run wp-env stop` / `npm run wp-env-test stop`
5252

5353
The `test-php*` and `test-e2e*` scripts run against the tests environment, so
54-
start it with `npm run wp-env-test -- start` before running them.
54+
start it with `npm run wp-env-test start` before running them.
5555

5656
Each environment can be overridden locally (these files are git-ignored):
5757
`.wp-env.override.json` for development and `.wp-env.test.override.json` for tests.

0 commit comments

Comments
 (0)