Skip to content

Commit

Permalink
feat: adding all summaries in one table
Browse files Browse the repository at this point in the history
  • Loading branch information
tjsearsz committed Nov 29, 2022
1 parent 27201e0 commit f67067d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions src/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ const commentForMonorepo = (
pdiff.toFixed(2),
"%",
)
: "";
: // "";
th(" N/A ");
/* let report = lcovObj.lcov;
if (baseLcov) {
Expand All @@ -73,20 +74,29 @@ const commentForMonorepo = (
report = onlyInBefore.concat(onlyInLcov);
} */

return `${table(
/* return `${table(
tbody(
tr(
th(lcovObj.packageName),
th(percentage(lcovObj.lcov).toFixed(2), "%"),
pdiffHtml,
),
),
)} \n <br/>`;
)} \n <br/>`; */

return tr(
th(lcovObj.packageName),
th(percentage(lcovObj.lcov).toFixed(2), "%"),
pdiffHtml,
);
});

const html2 = table(tbody(html.join("")));

const title = `Coverage after merging into ${b(base)} <p></p>`;

return fragment(title, html.join(""));
// return fragment(title, html.join(""));
return fragment(title, html2);
};

/**
Expand Down

0 comments on commit f67067d

Please sign in to comment.