Skip to content

Commit

Permalink
fix(coverage): istanbul crashes when no tests were run (#2753)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jan 27, 2023
1 parent df7c410 commit ebc95ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/coverage-istanbul/src/provider.ts
Expand Up @@ -105,7 +105,7 @@ export class IstanbulCoverageProvider implements CoverageProvider {
const map = libCoverage.createCoverageMap(coverage)
map.merge(previousCoverageMap)
return map
}, {})
}, libCoverage.createCoverageMap({}))

if (this.options.all && allTestsRun)
await this.includeUntestedFiles(mergedCoverage)
Expand Down

0 comments on commit ebc95ad

Please sign in to comment.