Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxy-v committed Sep 1, 2024
1 parent 665ed14 commit 867bacc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/check-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = async (sources, covFile) => {
for (let line of lines.line) {
if (line.$.hits === '0') {
if (sources.find(source => source.file === file && source.lines.includes(parseInt(line.$.number)))) {
console.log(`Uncovered line in ${file}:${line.$.number}`);
// Found an uncovered line in a changed file
return false;
}
Expand Down

0 comments on commit 867bacc

Please sign in to comment.