From 0db386dc1fe708791c0548e652592d4fd988d071 Mon Sep 17 00:00:00 2001 From: Marcelo Botega Fontana Date: Tue, 31 Oct 2023 14:45:40 +0100 Subject: [PATCH] fix: coverage.100 crash when using as an cli argument (#4346) --- 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 511e9d87d5b6..124558ea936f 100644 --- a/packages/vitest/src/node/cli.ts +++ b/packages/vitest/src/node/cli.ts @@ -25,7 +25,7 @@ cli .option('--hideSkippedTests', 'Hide logs for skipped tests') .option('--reporter ', 'Specify reporters') .option('--outputFile ', 'Write test results to a file when supporter reporter is also specified, use cac\'s dot notation for individual outputs of multiple reporters') - .option('--coverage', 'Enable coverage report') + .option('--coverage', 'Enable coverage report', { default: { 100: false } }) .option('--run', 'Disable watch mode') .option('--mode ', 'Override Vite mode (default: test)') .option('--globals', 'Inject apis globally')