JSON test report should include coverageMap
#4276
Labels
enhancement
New feature or request
p2-nice-to-have
Not breaking anything but nice to have (priority)
pr welcome
Describe the bug
vitest should include the coverage map in the coverage report but instead puts them in separate files.
The report should contain a key for the coverage map
e.g.
vitest run --coverage --outputFile=report.json --reporter=json
Instead it puts the coverage map in a separate file:
coverage/coverage-final.json
Reproduction
If you run:
`% vitest run --coverage --outputFile=report.json --reporter=json
Both of these searches will not return any results:
while this will return a result indicating that the json file is the coverage map.
% grep statementMap coverage/coverage-final.json
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: