Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jan 7, 2024
1 parent f3e96c0 commit 138db12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ const test = testBase.extend({
export { test, expect };
```
- Take coverage on global teardown.
> It can be used to add the server side coverage report. For example, a Node.js web server start at the beginning of the test with the env `ODE_V8_COVERAGE=dir`, the V8 coverage data will be saved to `dir` with calling API `v8.takeCoverage()` manually or terminating server gracefully. On global teardown, reading all from `dir` and adding them to global coverage report. For Node.js, the coverage data requires appending source manually.
> It can be used to add the server side coverage report. For example, a Node.js web server start at the beginning of the test with the env `NODE_V8_COVERAGE=dir`, the V8 coverage data will be saved to `dir` with calling API `v8.takeCoverage()` manually or terminating server gracefully. On global teardown, reading all from `dir` and adding them to global coverage report. For Node.js, the coverage data requires appending source manually.
```js
// global-teardown.js
import fs from 'fs';
Expand Down

0 comments on commit 138db12

Please sign in to comment.