Skip to content

feat: Add file coverage compare logic #765

feat: Add file coverage compare logic

feat: Add file coverage compare logic #765

Triggered via pull request November 2, 2024 17:50
Status Failure
Total duration 24s
Artifacts 1

test.yml

on: pull_request
Matrix: test
build-and-report
0s
build-and-report
Fit to window
Zoom out
Zoom in

Annotations

8 errors
test (feat-add-file-compare)
Process completed with exit code 1.
test (feat-add-file-compare): 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
test (feat-add-file-compare): 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
test (feat-add-file-compare): 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
test (feat-add-file-compare): 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
test (feat-add-file-compare): 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
test (feat-add-file-compare): 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
test (main)
The strategy configuration was canceled because "test.feat-add-file-compare" failed

Artifacts

Produced during runtime
Name Size
coverage-main
11.7 KB