MishaKav / jest-coverage-comment

Comments a pull request or commit with the jest code coverage badge, full report and tests summary
MIT License
80 stars 34 forks source link

Add support to coverage-final.json #82

Closed bwrutter closed 7 months ago

bwrutter commented 7 months ago

Hello, first of all, I would like to express gratitude for this excellent tool. I would appreciate it if, possible, the option to read and comment could be added when the file is coverage-final.json. It has a different structure from coverage-summary.json, but why coverage-final.json? I am using vitest.workspace, and it only exports in this format. Thank you very much!

Example: coverage-final.json

MishaKav commented 7 months ago

Thanks, I'm glad that you found this action helpful. You can try some working workaround to solve this issue, answered in StackOverflow: https://stackoverflow.com/questions/75835100/vitest-how-do-i-get-jest-compatible-coverage-summary-in-json