Skip to content

Commit 0db386d

Browse files
fix: coverage.100 crash when using as an cli argument (#4346)
1 parent eda66e8 commit 0db386d

File tree

1 file changed

+1
-1
lines changed
  • packages/vitest/src/node

1 file changed

+1
-1
lines changed

packages/vitest/src/node/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cli
2525
.option('--hideSkippedTests', 'Hide logs for skipped tests')
2626
.option('--reporter <name>', 'Specify reporters')
2727
.option('--outputFile <filename/-s>', 'Write test results to a file when supporter reporter is also specified, use cac\'s dot notation for individual outputs of multiple reporters')
28-
.option('--coverage', 'Enable coverage report')
28+
.option('--coverage', 'Enable coverage report', { default: { 100: false } })
2929
.option('--run', 'Disable watch mode')
3030
.option('--mode <name>', 'Override Vite mode (default: test)')
3131
.option('--globals', 'Inject apis globally')

0 commit comments

Comments
 (0)