coverage.reporter
with a single value causes error while running tests without coverage (v2.0.x)
#6260
Closed
6 tasks done
Labels
feat: coverage
Issues and PRs related to the coverage feature
p4-important
Violate documented behavior or significantly improves performance (priority)
Describe the bug
The documentation of
coverage.reporter
on both V2 and V1 say that we can usestring
as a valid value.So a minimal
vitest.config
like this, should workThis works fine with 1.6, but not in 2.0.x.
Error printed while executing
pnpm run test
. The error is not present while runningpnpm run test --coverage
Reproduction
A minimal reproduction case in this repository ildede/vitest-single-reporter-error
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: