Skip to content

Commit

Permalink
fix: don't use bun --bun for playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Oct 22, 2024
1 parent a1c3670 commit 5550a6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/wb/src/commands/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export async function test(
continue;
}
case 'trace': {
await runWithSpawn(`BUN playwright show-trace`, project, argv);
await runWithSpawn(`YARN playwright show-trace`, project, argv);
continue;
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/wb/src/scripts/execution/baseScripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export abstract class BaseScripts {
return `WB_ENV=${env} NEXT_PUBLIC_WB_ENV=${env} APP_ENV=${env} PORT=8080 YARN concurrently --kill-others --raw --success first
"rm -Rf ${prismaDirectory}/mount && ${startCommand} && exit 1"
"wait-on -t 600000 -i 2000 http-get://127.0.0.1:8080
&& BUN playwright ${playwrightArgs === 'test tests/e2e' && argv.target ? playwrightArgs.replace('tests/e2e', argv.target) : playwrightArgs}${suffix}"`;
&& YARN playwright ${playwrightArgs === 'test tests/e2e' && argv.target ? playwrightArgs.replace('tests/e2e', argv.target) : playwrightArgs}${suffix}"`;
}

testE2EDev(
Expand All @@ -63,7 +63,7 @@ export abstract class BaseScripts {
return `WB_ENV=${env} NEXT_PUBLIC_WB_ENV=${env} APP_ENV=${env} PORT=8080 YARN concurrently --kill-others --raw --success first
"${startCommand} && exit 1"
"wait-on -t 600000 -i 2000 http-get://127.0.0.1:8080
&& BUN playwright ${playwrightArgs === 'test tests/e2e' && argv.target ? playwrightArgs.replace('tests/e2e', argv.target) : playwrightArgs}${suffix}"`;
&& YARN playwright ${playwrightArgs === 'test tests/e2e' && argv.target ? playwrightArgs.replace('tests/e2e', argv.target) : playwrightArgs}${suffix}"`;
}

abstract testStart(project: Project, argv: ScriptArgv): string;
Expand Down

0 comments on commit 5550a6f

Please sign in to comment.