Skip to content

Commit

Permalink
doc: JavaScript Runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Oct 3, 2024
1 parent 6add3db commit 21a9d4c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,16 @@ export interface ScriptCoverage {
export type V8CoverageData = ScriptCoverage[];
```
| JavaScript Runtime | V8 Coverage | |
| :--------------| :----: | :---------------------- |
| Chrome (65%) | ✅ | Chromium-based |
| Safari (18%) | ❌ | |
| Edge (5%) | ✅ | Chromium-based |
| Firefox (2%) | ❌ | |
| Node.js | ✅ | |
| Deno | ❌ | [issue](https://github.com/denoland/deno/issues/23359) |
| Bun | ❌ | |
## Filtering Results
### Using `entryFilter` and `sourceFilter` to filter the results for V8 report
When V8 coverage data collected, it actually contains the data of all entry files, for example:
Expand Down
10 changes: 10 additions & 0 deletions README.zh-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,16 @@ export interface ScriptCoverage {
export type V8CoverageData = ScriptCoverage[];
```
| JavaScript Runtime | V8 Coverage | |
| :--------------| :----: | :---------------------- |
| Chrome (65%) | ✅ | Chromium-based |
| Safari (18%) | ❌ | |
| Edge (5%) | ✅ | Chromium-based |
| Firefox (2%) | ❌ | |
| Node.js | ✅ | |
| Deno | ❌ | [issue](https://github.com/denoland/deno/issues/23359) |
| Bun | ❌ | |
## Filtering Results
## Using `entryFilter` and `sourceFilter` to filter the results for V8 report
当收集到V8的覆盖数据时,它实际上包含了所有的入口文件的覆盖率数据, 比如有以下3个文件:
Expand Down

0 comments on commit 21a9d4c

Please sign in to comment.