Threshold on a Glob Pattern does not show an error message #5545
Labels
feat: coverage
Issues and PRs related to the coverage feature
p2-edge-case
Bug, but has workaround or limited in scope (priority)
Describe the bug
When a global coverage threshold is set in vitest configuration, an error message is shown like this
But, when threshold for a particular file is set using the glob-pattern option, there is no such error message.
Reproduction
1.Clone this repo: https://github.com/kanteankit/vitest
2. Run
npm install
3. Run
npm run coverage
Expected behaviour: An error message should show up which says that the threshold for the file
AsAsync.vue
is not met.Actual behaviour: There is no error message
In vitest.config.ts, a threshold of 100 is set on
components/AsAsync.vue
. But, it is not throwing any error.Note: Couldn't provide a Stackblitz because it gives an error saying
@vitest/coverage-v8 does not work on Stackblitz. Report will be empty.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: