From 18cc578ca40e11c4d376d2180be26f3bdaee852c Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 16 Feb 2022 14:07:56 +0800 Subject: [PATCH] fix: don't reject on execa --- packages/vitest/src/node/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vitest/src/node/cli.ts b/packages/vitest/src/node/cli.ts index 0a171904cd28..975c76b80d83 100644 --- a/packages/vitest/src/node/cli.ts +++ b/packages/vitest/src/node/cli.ts @@ -95,7 +95,7 @@ async function start(cliFilters: string[], options: CliOptions) { if (!process.env.NODE_V8_COVERAGE) { process.env.NODE_V8_COVERAGE = ctx.config.coverage.tempDirectory - const { exitCode } = await execa(process.argv0, process.argv.slice(1), { stdio: 'inherit' }) + const { exitCode } = await execa(process.argv0, process.argv.slice(1), { stdio: 'inherit', reject: false }) process.exit(exitCode) } }