From 5550a6f0223cc300cd9a6d085281dfb535cfcb35 Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Tue, 22 Oct 2024 10:02:26 +0900 Subject: [PATCH] fix: don't use bun --bun for playwright --- packages/wb/src/commands/test.ts | 2 +- packages/wb/src/scripts/execution/baseScripts.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/wb/src/commands/test.ts b/packages/wb/src/commands/test.ts index 53ce5deb..85c786cc 100644 --- a/packages/wb/src/commands/test.ts +++ b/packages/wb/src/commands/test.ts @@ -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; } } diff --git a/packages/wb/src/scripts/execution/baseScripts.ts b/packages/wb/src/scripts/execution/baseScripts.ts index 43952c0e..3baac9c5 100644 --- a/packages/wb/src/scripts/execution/baseScripts.ts +++ b/packages/wb/src/scripts/execution/baseScripts.ts @@ -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( @@ -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;