You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/coverage-v8/src/provider.ts
+27-31Lines changed: 27 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -195,19 +195,11 @@ export class V8CoverageProvider extends BaseCoverageProvider<ResolvedCoverageOpt
195
195
transform,
196
196
)
197
197
198
-
constconverter=v8ToIstanbul(
198
+
coverageMap.merge(awaitthis.v8ToIstanbul(
199
199
filename.href,
200
200
0,
201
201
sources,
202
-
undefined,
203
-
this.options.ignoreEmptyLines,
204
-
)
205
-
206
-
awaitconverter.load()
207
-
208
-
try{
209
-
// Create a made up function to mark whole file as uncovered. Note that this does not exist in source maps.
210
-
converter.applyCoverage([{
202
+
[{
211
203
ranges: [
212
204
{
213
205
startOffset: 0,
@@ -218,19 +210,34 @@ export class V8CoverageProvider extends BaseCoverageProvider<ResolvedCoverageOpt
218
210
isBlockCoverage: true,
219
211
// This is magical value that indicates an empty report: https://github.com/istanbuljs/v8-to-istanbul/blob/fca5e6a9e6ef38a9cdc3a178d5a6cf9ef82e6cab/lib/v8-to-istanbul.js#LL131C40-L131C40
220
212
functionName: '(empty-report)',
221
-
}])
222
-
}
223
-
catch(error){
224
-
this.ctx.logger.error(`Failed to convert coverage for uncovered ${filename.href}.\n`,error)
0 commit comments