You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the docs I have the following npm script to generate the coverage report:
"coverage": "vitest run --coverage"
However it includes the unit test files themselves which is not useful and also leads to incorrect coverage metrics. Please can this be addressed in Vite?
Reproduction
Follow getting started guide and make a basic function and a unit test that imports that function. Have "coverage": "vitest run --coverage" in npm scrips and run it. Observe the reports in both the console and HTML istanbul report contain both SUT's and the unit tests themselves.
Describe the bug
As per the docs I have the following npm script to generate the coverage report:
However it includes the unit test files themselves which is not useful and also leads to incorrect coverage metrics. Please can this be addressed in Vite?
Reproduction
Follow getting started guide and make a basic function and a unit test that imports that function. Have
"coverage": "vitest run --coverage"
in npm scrips and run it. Observe the reports in both the console and HTML istanbul report contain both SUT's and the unit tests themselves.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: