From 21a9d4c2697417569d6c92ae457230007df096d4 Mon Sep 17 00:00:00 2001 From: cenfun Date: Thu, 3 Oct 2024 11:38:52 +0800 Subject: [PATCH] doc: JavaScript Runtime --- README.md | 10 ++++++++++ README.zh-Hans.md | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/README.md b/README.md index a64f893..f757124 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/README.zh-Hans.md b/README.zh-Hans.md index 68a7d3a..b19e9f3 100644 --- a/README.zh-Hans.md +++ b/README.zh-Hans.md @@ -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个文件: