Skip to content

Commit 16e3776

Browse files
authored
fix(JSCoverageEntry): added scriptId and isBlockCoverage (#2955)
1 parent 424f11d commit 16e3776

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4299,9 +4299,11 @@ const v8toIstanbul = require('v8-to-istanbul');
42994299
#### chromiumCoverage.stopJSCoverage()
43004300
- returns: <[Promise]<[Array]<[Object]>>> Promise that resolves to the array of coverage reports for all scripts
43014301
- `url` <[string]> Script URL
4302+
- `scriptId` <[string]> Script ID
43024303
- `source` <[string]> Script content, if applicable.
43034304
- `functions` <[Array]<[Object]>> V8-specific coverage format.
43044305
- `functionName` <[string]>
4306+
- `isBlockCoverage` <[boolean]>
43054307
- `ranges` <[Array]<[Object]>>
43064308
- `count` <[number]>
43074309
- `startOffset` <[number]>

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,11 @@ export type CSSCoverageEntry = {
149149

150150
export type JSCoverageEntry = {
151151
url: string,
152+
scriptId: string,
152153
source?: string,
153154
functions: {
154155
functionName: string,
156+
isBlockCoverage: boolean,
155157
ranges: JSRange[]
156158
}[]
157159
};

0 commit comments

Comments
 (0)