Skip to content

Commit

Permalink
Fixed incorrect coverage for Vue files
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 8, 2024
1 parent 5584b50 commit 5a5251b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/istanbul-lib-instrument/src/visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ function programVisitor(types, sourceFilePath = 'unknown.js', opts = {}) {
coverageData.hash = hash;
if (
coverageData.inputSourceMap &&
typeof coverageData.inputSourceMap !== 'string' &&
Object.getPrototypeOf(coverageData.inputSourceMap) !==
Object.prototype
) {
Expand Down

0 comments on commit 5a5251b

Please sign in to comment.