-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(coverage): v8 sourcemaps with multiple sources
- Loading branch information
1 parent
f44cc91
commit 488d6af
Showing
10 changed files
with
629 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * as first from "./first"; | ||
export * as second from "./second"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export function covered() { | ||
return "First"; | ||
} | ||
|
||
export function uncovered() { | ||
return "Uncovered"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export function covered() { | ||
return "Second"; | ||
} | ||
|
||
export function uncovered() { | ||
return "Uncovered"; | ||
} |
168 changes: 168 additions & 0 deletions
168
test/coverage-test/test/__snapshots__/bundled-istanbul.snapshot.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
{ | ||
"<process-cwd>/fixtures/src/pre-bundle/first.ts": { | ||
"path": "<process-cwd>/fixtures/src/pre-bundle/first.ts", | ||
"statementMap": { | ||
"0": { | ||
"start": { | ||
"line": 2, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 2, | ||
"column": 17 | ||
} | ||
}, | ||
"1": { | ||
"start": { | ||
"line": 6, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 6, | ||
"column": 21 | ||
} | ||
} | ||
}, | ||
"fnMap": { | ||
"0": { | ||
"name": "covered$1", | ||
"decl": { | ||
"start": { | ||
"line": 1, | ||
"column": 16 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 23 | ||
} | ||
}, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 26 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 1 | ||
} | ||
} | ||
}, | ||
"1": { | ||
"name": "uncovered$1", | ||
"decl": { | ||
"start": { | ||
"line": 5, | ||
"column": 16 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"column": 25 | ||
} | ||
}, | ||
"loc": { | ||
"start": { | ||
"line": 5, | ||
"column": 28 | ||
}, | ||
"end": { | ||
"line": 7, | ||
"column": null | ||
} | ||
} | ||
} | ||
}, | ||
"branchMap": {}, | ||
"s": { | ||
"0": 1, | ||
"1": 0 | ||
}, | ||
"f": { | ||
"0": 1, | ||
"1": 0 | ||
}, | ||
"b": {} | ||
}, | ||
"<process-cwd>/fixtures/src/pre-bundle/second.ts": { | ||
"path": "<process-cwd>/fixtures/src/pre-bundle/second.ts", | ||
"statementMap": { | ||
"0": { | ||
"start": { | ||
"line": 2, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 2, | ||
"column": 18 | ||
} | ||
}, | ||
"1": { | ||
"start": { | ||
"line": 6, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 6, | ||
"column": 21 | ||
} | ||
} | ||
}, | ||
"fnMap": { | ||
"0": { | ||
"name": "covered", | ||
"decl": { | ||
"start": { | ||
"line": 1, | ||
"column": 16 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 23 | ||
} | ||
}, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 26 | ||
}, | ||
"end": { | ||
"line": 3, | ||
"column": 1 | ||
} | ||
} | ||
}, | ||
"1": { | ||
"name": "uncovered", | ||
"decl": { | ||
"start": { | ||
"line": 5, | ||
"column": 16 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"column": 25 | ||
} | ||
}, | ||
"loc": { | ||
"start": { | ||
"line": 5, | ||
"column": 28 | ||
}, | ||
"end": { | ||
"line": 7, | ||
"column": null | ||
} | ||
} | ||
} | ||
}, | ||
"branchMap": {}, | ||
"s": { | ||
"0": 1, | ||
"1": 0 | ||
}, | ||
"f": { | ||
"0": 1, | ||
"1": 0 | ||
}, | ||
"b": {} | ||
} | ||
} |
Oops, something went wrong.