diff --git a/test/e2e/realtime-check.ts b/test/e2e/realtime-check.ts index f86485475..0fe0bb07a 100644 --- a/test/e2e/realtime-check.ts +++ b/test/e2e/realtime-check.ts @@ -18,7 +18,7 @@ const program = new Command() .option("--publishable-key ", "Project publishable (anon) key") .option("--secret-key ", "Project secret (service role) key") .option("--db-password ", "Database password (required for staging/prod)") - .option("--env ", "Environment: local | staging | prod (default: prod)", "prod") + .option("--env ", "Environment: local | staging | prod | production (default: prod)", "prod") .option("--domain ", "Email domain for the test user", "example.com") .option("--port ", "Override URL port (useful for local)") .option("--url ", "Override project URL (e.g. http://127.0.0.1:54321)") @@ -33,7 +33,8 @@ const opts = program.opts(); const ANON_KEY: string = opts.publishableKey; const SERVICE_KEY: string = opts.secretKey; const dbPassword: string = opts.dbPassword ?? ""; -const { project, env, domain: EMAIL_DOMAIN, port, json: JSON_OUTPUT, test: TEST_FILTER, otel: OTEL_ARG, otelToken: OTEL_API_TOKEN, url: URL_ARG, dbUrl: DB_URL_ARG } = opts; +const { project, domain: EMAIL_DOMAIN, port, json: JSON_OUTPUT, test: TEST_FILTER, otel: OTEL_ARG, otelToken: OTEL_API_TOKEN, url: URL_ARG, dbUrl: DB_URL_ARG } = opts; +const env: string = opts.env === "production" ? "prod" : opts.env; const TEST_CATEGORIES = TEST_FILTER ? TEST_FILTER.split(",").map((s: string) => s.trim().toLowerCase())