Skip to content

Commit

Permalink
fix(wb): ensure APP_ENV and WB_ENV values are equal
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Sep 26, 2023
1 parent d3eb432 commit bdaa6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wb/src/scripts/execution/baseExecutionScripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ export abstract class BaseExecutionScripts {
// Basically, `playwright` (not `yarn playwright`) should work,
// but it doesn't work on a project depending on `artillery-engine-playwright`.
// So we use `yarn playwright` instead of `playwright` here.
return `APP_ENV=production WB_ENV=test PORT=8080 YARN dotenv -c production -- concurrently --kill-others --raw --success first
return `APP_ENV=test WB_ENV=test PORT=8080 YARN dotenv -c production -- concurrently --kill-others --raw --success first
"rm -Rf ${prismaDirectory}/mount && ${startCommand} && exit 1"
"concurrently --kill-others-on-fail --raw 'wait-on -t 600000 -i 2000 http://127.0.0.1:8080' 'yarn playwright install --with-deps'
&& yarn playwright ${playwrightArgs}"`;
}

testE2EDev(argv: ScriptArgv, { playwrightArgs, startCommand }: TestE2EDevOptions): string {
return `APP_ENV=development WB_ENV=test NEXT_PUBLIC_WB_ENV=test PORT=8080 YARN dotenv -c development -- concurrently --kill-others --raw --success first
return `APP_ENV=test WB_ENV=test NEXT_PUBLIC_WB_ENV=test PORT=8080 YARN dotenv -c development -- concurrently --kill-others --raw --success first
"${startCommand} && exit 1"
"concurrently --kill-others-on-fail --raw 'wait-on -t 600000 -i 2000 http://127.0.0.1:8080' 'yarn playwright install --with-deps'
&& yarn playwright ${playwrightArgs}"`;
Expand Down

0 comments on commit bdaa6b9

Please sign in to comment.