rdme icon indicating copy to clipboard operation
rdme copied to clipboard

Jest coverage is broken in GitHub Actions

Open kanadgupta opened this issue 2 years ago • 0 comments

Been seeing this error when running tests in GitHub Actions CI for a bit now:

        Failed to write coverage reports:
        ERROR: Error: ENOENT: no such file or directory, open '/home/runner/work/rdme/rdme/coverage/coverage-final.json'
        STACK: Error: ENOENT: no such file or directory, open '/home/runner/work/rdme/rdme/coverage/coverage-final.json'
    at Object.openSync (fs.js:498:3)
    at FileWriter.writeFile (/home/runner/work/rdme/rdme/node_modules/istanbul-lib-report/lib/file-writer.js:185:41)
    at JsonReport.onStart (/home/runner/work/rdme/rdme/node_modules/istanbul-reports/lib/json/index.js:17:45)
    at Visitor.value (/home/runner/work/rdme/rdme/node_modules/istanbul-lib-report/lib/tree.js:38:38)
    at ReportTree.visit (/home/runner/work/rdme/rdme/node_modules/istanbul-lib-report/lib/tree.js:126:17)
    at JsonReport.execute (/home/runner/work/rdme/rdme/node_modules/istanbul-lib-report/lib/report-base.js:12:44)
    at /home/runner/work/rdme/rdme/node_modules/@jest/reporters/build/CoverageReporter.js:241:12
    at Array.forEach (<anonymous>)
    at CoverageReporter.onRunComplete (/home/runner/work/rdme/rdme/node_modules/@jest/reporters/build/CoverageReporter.js:229:25)
    at ReporterDispatcher.onRunComplete (/home/runner/work/rdme/rdme/node_modules/@jest/core/build/ReporterDispatcher.js:71:9)

Not sure why, but jest coverage started breaking somewhere between this commit and this commit.

Anything weird jumping out here? 🧐 https://github.com/readmeio/rdme/compare/ca998bc2fae30319a7d85ced85e0f83494fcd221...65a209a40981e55db0c861ce53aafbd290501f84

See #611 #610 for various attempts to address this.

kanadgupta avatar Sep 20 '22 20:09 kanadgupta