diff --git a/.changeset/big-boxes-tan.md b/.changeset/big-boxes-tan.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/big-boxes-tan.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/scripts/tests-coverage-diff.ts b/scripts/tests-coverage-diff.ts index 8c3f2d2496d..68b0450d532 100644 --- a/scripts/tests-coverage-diff.ts +++ b/scripts/tests-coverage-diff.ts @@ -10,5 +10,18 @@ const getDiff = () => { (() => { const { results } = getDiff(); const formattedResults = results.split(`${process.cwd()}/`).join(''); - writeFileSync('coverage/report/coverage-diff.txt', formattedResults, { flag: 'w' }); + const resultsSections = formattedResults.split('Total:'); + const report = ` + ***Coverage Report:*** + ${resultsSections[1]} + +
+ + Changed Files: + + ${resultsSections[0]} +
+ `; + + writeFileSync('coverage/report/coverage-diff.txt', report, { flag: 'w' }); })();