Skip to content

Commit 0884dae

Browse files
committed
fix e2e environment passing now that --env is a proper first class citizen
1 parent d42dd1a commit 0884dae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/common/config-e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ export function configurePlaywright(
2626
const env = app === "r2-incremental-cache" ? "--env e2e" : "";
2727
if (isCI) {
2828
// Do not build on CI - there is a preceding build step
29-
command = `pnpm preview:worker -- --port ${port} --inspector-port ${inspectorPort} ${env}`;
29+
command = `pnpm preview:worker ${env} -- --port ${port} --inspector-port ${inspectorPort}`;
3030
timeout = 100_000;
3131
} else {
3232
timeout = 500_000;
33-
command = `pnpm preview -- --port ${port} --inspector-port ${inspectorPort} ${env}`;
33+
command = `pnpm preview ${env} -- --port ${port} --inspector-port ${inspectorPort}`;
3434
}
3535
} else {
3636
timeout = 100_000;

packages/cloudflare/src/cli/args.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ function withWranglerOptions<T extends yargs.Argv>(args: T) {
7878
.options("config", {
7979
type: "string",
8080
alias: "c",
81-
desc: "Wrangler config file path",
81+
desc: "Path to Wrangler configuration file",
8282
})
8383
.options("env", {
8484
type: "string",
8585
alias: "e",
86-
desc: "Wrangler environment",
86+
desc: "Wrangler environment to use for operations",
8787
});
8888
}
8989

0 commit comments

Comments
 (0)