committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
7
node_modules/istanbul-reports/CHANGELOG.md
generated
vendored
7
node_modules/istanbul-reports/CHANGELOG.md
generated
vendored
@ -3,6 +3,13 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
### [3.1.4](https://github.com/istanbuljs/istanbuljs/compare/istanbul-reports-v3.1.3...istanbul-reports-v3.1.4) (2022-01-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* "E" is not showing in the HTML reporter for "implicit else" branches after pull 633 ([#663](https://github.com/istanbuljs/istanbuljs/issues/663)) ([7818922](https://github.com/istanbuljs/istanbuljs/commit/7818922fd7229c4eee12b1407b5a13020f5d34de))
|
||||
|
||||
### [3.1.3](https://github.com/istanbuljs/istanbuljs/compare/istanbul-reports-v3.1.2...istanbul-reports-v3.1.3) (2021-12-29)
|
||||
|
||||
|
||||
|
16
node_modules/istanbul-reports/lib/html/annotator.js
generated
vendored
16
node_modules/istanbul-reports/lib/html/annotator.js
generated
vendored
@ -164,6 +164,22 @@ function annotateBranches(fileCoverage, structuredText) {
|
||||
gt;
|
||||
closeSpan = lt + '/span' + gt;
|
||||
|
||||
// If the branch is an implicit else from an if statement,
|
||||
// then the coverage report won't show a statistic.
|
||||
// Therefore, the previous branch will be used to report that
|
||||
// there is no coverage on that implicit branch.
|
||||
if (
|
||||
count === 0 &&
|
||||
startLine === undefined &&
|
||||
branchMeta[branchName].type === 'if'
|
||||
) {
|
||||
const prevMeta = metaArray[i - 1];
|
||||
startCol = prevMeta.start.column;
|
||||
endCol = prevMeta.end.column + 1;
|
||||
startLine = prevMeta.start.line;
|
||||
endLine = prevMeta.end.line;
|
||||
}
|
||||
|
||||
if (count === 0 && structuredText[startLine]) {
|
||||
//skip branches taken
|
||||
if (endLine !== startLine) {
|
||||
|
2
node_modules/istanbul-reports/package.json
generated
vendored
2
node_modules/istanbul-reports/package.json
generated
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "istanbul-reports",
|
||||
"version": "3.1.3",
|
||||
"version": "3.1.4",
|
||||
"description": "istanbul reports",
|
||||
"author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>",
|
||||
"main": "index.js",
|
||||
|
Reference in New Issue
Block a user