diff --git a/packages/wb/src/commands/test.ts b/packages/wb/src/commands/test.ts index e138f33d..a34c4885 100644 --- a/packages/wb/src/commands/test.ts +++ b/packages/wb/src/commands/test.ts @@ -85,10 +85,6 @@ export async function test( process.exit(1); } - if (projects.descendants.length > 1) { - // Disable interactive mode - process.env.CI = '1'; - } process.env.FORCE_COLOR ||= '3'; process.env.WB_ENV ||= 'test'; diff --git a/packages/wb/src/scripts/execution/baseScripts.ts b/packages/wb/src/scripts/execution/baseScripts.ts index 5cb9f3b3..7538b235 100644 --- a/packages/wb/src/scripts/execution/baseScripts.ts +++ b/packages/wb/src/scripts/execution/baseScripts.ts @@ -118,7 +118,7 @@ export abstract class BaseScripts { if (project.hasVitest) { const bailOption = argv.bail ? ' --bail=1' : ''; // Since this command is referred from other commands, we have to use "vitest run" (non-interactive mode). - return `YARN vitest run ${testTarget} --color --passWithNoTests --allowOnly${bailOption}`; + return `YARN vitest run ${testTarget} --color --passWithNoTests --allowOnly --watch=false${bailOption}`; } else if (project.isBunAvailable) { const bailOption = argv.bail ? ' --bail' : ''; return `bun test ${testTarget}${bailOption}`;