Skip to content

Commit

Permalink
Support istanbul report (#24)
Browse files Browse the repository at this point in the history
* support istanbul reports replace('//', '/')

* 1.0.13
  • Loading branch information
MishaKav authored Aug 9, 2022
1 parent 21b0636 commit c796cdd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jest-coverage-comment",
"version": "1.0.12",
"version": "1.0.13",
"description": "Comments a pull request or commit with the jest code coverage badge, full report and tests summary",
"author": "Misha Kav <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/parse-coverage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function parseCoverage(content: string): CoverageLine[] {
}

if (!isCurrentFolder && folders.length) {
parsedLine[0] = `${folders.at(-1)}/${parsedLine.at(0)}`
parsedLine[0] = `${folders.at(-1)}/${parsedLine.at(0)}`.replace('//', '/')
}

if (isCurrentFolder || isCurrentFile) {
Expand Down

0 comments on commit c796cdd

Please sign in to comment.