Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Dec 31, 2023
1 parent d7dcafe commit 4d51a9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ console.log(coverageResults.summary);
> cross-env NODE_V8_COVERAGE=`.temp/v8-coverage` node [./test/test-node-env.js](./test/test-node-env.js) && node [./test/generate-node-report.js](./test/generate-node-report.js)
- Using [V8](https://nodejs.org/docs/latest/api/v8.html#v8takecoverage) API
- Writing the coverage started by NODE_V8_COVERAGE to disk on demand with `v8.takeCoverage()` and `v8.stopCoverage()`.
- example:
- Writing the coverage started by NODE_V8_COVERAGE to disk on demand with `v8.takeCoverage()` and stopping with `v8.stopCoverage()`.
- example:
> cross-env NODE_V8_COVERAGE=`.temp/v8-coverage` node [./test/test-node-api.js](./test/test-node-api.js)
- Using [Inspector](https://nodejs.org/docs/latest/api/inspector.html) API (or module [collect-v8-coverage](https://github.com/SimenB/collect-v8-coverage))
Expand All @@ -187,7 +187,7 @@ console.log(coverageResults.summary);
- example: [./test/test-node-cdp.js](./test/test-node-cdp.js)

## Using `entryFilter` and `sourceFilter` to filter the results for V8 report
When you add coverage data with [Chromium Coverage API](#chromium-coverage-api), it actually contains the data of all entry files, for example:
When V8 coverage data collected, it actually contains the data of all entry files, for example:
```
1, dist/main.js
2, dist/vendor.js
Expand Down

0 comments on commit 4d51a9f

Please sign in to comment.