We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 657b592 commit 4c824f5Copy full SHA for 4c824f5
packages/istanbul-report/src/index.js
@@ -48,13 +48,18 @@ class IstanbulReport extends ReportBase {
48
filename: node.getRelativeName(),
49
details: {
50
lines: undefined,
51
+ branchCoverage: undefined,
52
+ branchMap: undefined,
53
},
54
};
55
56
const fileCoverage = node.getFileCoverage();
57
const sourceText = context.getSource(fileCoverage.path);
58
const lineStats = fileCoverage.getLineCoverage();
59
60
+ this.collectedData[qualifiedName].details.branchCoverage = fileCoverage.b;
61
+ this.collectedData[qualifiedName].details.branchMap = fileCoverage.branchMap;
62
+
63
if (lineStats) {
64
this.collectedData[qualifiedName].details.lines = sourceText.split(/\r?\n|\r/)
65
.map((line, index) => {
0 commit comments