feat!(coverage): glob based coverage thresholds#4442
feat!(coverage): glob based coverage thresholds#4442sheremet-va merged 1 commit intovitest-dev:mainfrom
Conversation
|
|
✅ Deploy Preview for fastidious-cascaron-4ded94 canceled.
|
e96b8a3 to
490aafb
Compare
|
@AriPerkkio |
|
@arianshirepublik this feature is not yet finished but should make it to v1 release. I'm introducing some breaking changes to coverage option structure at the same time. |
|
Adding support to |
Maybe you can try https://github.com/unjs/magicast ? |
03e55b9 to
23dee73
Compare
23dee73 to
01036c9
Compare
Hi @AriPerkkio |
|
No, this feature is not yet finished. Please wait patiently 😄 |
aead892 to
b934bc3
Compare
e19d3e0 to
8c0855d
Compare
8c0855d to
cfae6cd
Compare
cfae6cd to
9c01123
Compare
9c01123 to
6b4a109
Compare
BREAKING CHANGES - `coverage.perFile` is now `coverage.thresholds.perFile` - `coverage.thresholdAutoUpdate` is now `coverage.thresholds.autoUpdate` - `coverage.100` is now `coverage.thresholds.100` - `coverage.lines` is now `coverage.thresholds.lines` - `coverage.functions` is now `coverage.thresholds.functions` - `coverage.branches` is now `coverage.thresholds.branches` - `coverage.statements` is now `coverage.thresholds.statements`
6b4a109 to
8dd1640
Compare
|
Hi @AriPerkkio |
|
Hi @AriPerkkio When I run the command: yarn run test --coverage, The desired test case has been executed but no test report or coverage table has been generated, and then the program stops here. My config:
I can't see this table:
|
|
@arianshirepublik please open new issue with reproducible setup. |



Description
Closes #3709.
Refactors coverage thresholds API into new shape and adds support for specifying thresholds for specific files using glob patterns. Introducing breaking changes for the configuration options made sense here and final results looks clean and simple.
BREAKING CHANGES
coverage.perFileis nowcoverage.thresholds.perFilecoverage.thresholdAutoUpdateis nowcoverage.thresholds.autoUpdatecoverage.100is nowcoverage.thresholds.100coverage.linesis nowcoverage.thresholds.linescoverage.functionsis nowcoverage.thresholds.functionscoverage.branchesis nowcoverage.thresholds.branchescoverage.statementsis nowcoverage.thresholds.statementsPlease don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Documentation
pnpm run docscommand.Changesets
feat:,fix:,perf:,docs:, orchore:.