feat: Add file coverage compare logic #765
Annotations
7 errors
|
src/report/generateFileCoverageHtml.test.ts#L310
AssertionError: expected '<table> <thead> <tr> <th align="left"…' to contain '⬇️ <em>-10.00%</em>'
Expected: "⬇️ <em>-10.00%</em>"
Received: "<table> <thead> <tr> <th align="left">File</th> <th align="right">Stmts</th> <th align="right">% Branch</th> <th align="right">% Funcs</th> <th align="right">% Lines</th> <th align="left">Uncovered Lines</th> </tr> </thead> <tbody> <tr> <td align="left" colspan="6"><b>Unchanged Files</b></td> </tr> <tr> <td align="left"><a href="https://github.com/owner/repo/blob/test-sha/file1.ts">file1.ts</a></td> <td align="right">5%</td> <td align="right">70%</td> <td align="right">5%</td> <td align="right">5%</td> <td align="left"></td> </tr> </tbody> </table>"
❯ src/report/generateFileCoverageHtml.test.ts:310:16
|
src/report/generateFileCoverageHtml.test.ts#L276
AssertionError: expected '<table> <thead> <tr> <th align="left"…' to contain '⬆️ <em>+10.00%</em>'
Expected: "⬆️ <em>+10.00%</em>"
Received: "<table> <thead> <tr> <th align="left">File</th> <th align="right">Stmts</th> <th align="right">% Branch</th> <th align="right">% Funcs</th> <th align="right">% Lines</th> <th align="left">Uncovered Lines</th> </tr> </thead> <tbody> <tr> <td align="left" colspan="6"><b>Unchanged Files</b></td> </tr> <tr> <td align="left"><a href="https://github.com/owner/repo/blob/test-sha/file1.ts">file1.ts</a></td> <td align="right">5%</td> <td align="right">70%</td> <td align="right">5%</td> <td align="right">5%</td> <td align="left"></td> </tr> </tbody> </table>"
❯ src/report/generateFileCoverageHtml.test.ts:276:16
|
src/report/generateFileCoverageHtml.test.ts#L242
AssertionError: expected '<table> <thead> <tr> <th align="left"…' to contain '🟰'
Expected: "🟰"
Received: "<table> <thead> <tr> <th align="left">File</th> <th align="right">Stmts</th> <th align="right">% Branch</th> <th align="right">% Funcs</th> <th align="right">% Lines</th> <th align="left">Uncovered Lines</th> </tr> </thead> <tbody> <tr> <td align="left" colspan="6"><b>Unchanged Files</b></td> </tr> <tr> <td align="left"><a href="https://github.com/owner/repo/blob/test-sha/file1.ts">file1.ts</a></td> <td align="right">5%</td> <td align="right">5%</td> <td align="right">5%</td> <td align="right">5%</td> <td align="left"></td> </tr> </tbody> </table>"
❯ src/report/generateFileCoverageHtml.test.ts:242:16
|
src/inputs/getPullChanges.test.ts#L107
AssertionError: expected [Function] to throw error including 'Unexpected error' but got 'iterator is not async iterable'
Expected: "Unexpected error"
Received: "iterator is not async iterable"
❯ src/inputs/getPullChanges.test.ts:107:3
|
src/inputs/getPullChanges.ts#L41
TypeError: iterator is not async iterable
❯ Module.getPullChanges src/inputs/getPullChanges.ts:41:32
❯ src/inputs/getPullChanges.test.ts:94:24
|
src/inputs/getPullChanges.ts#L41
TypeError: iterator is not async iterable
❯ Module.getPullChanges src/inputs/getPullChanges.ts:41:32
❯ src/inputs/getPullChanges.test.ts:78:24
|
Loading