playwright-test-coverage-native
Advanced tools
Comparing version
@@ -13,3 +13,3 @@ const fsPromises = require("node:fs/promises"); | ||
const coverageSrcResolved = coverageSrc ? path.resolve(coverageSrc) : ''; | ||
const coverageSrcResolved = coverageSrc ? path.resolve(coverageSrc) : ""; | ||
@@ -16,0 +16,0 @@ await page.coverage.startJSCoverage(); |
{ | ||
"name": "playwright-test-coverage-native", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Extends Playwright for measuring code-coverage (built-in v8 coverage, no Istanbul)", | ||
@@ -10,2 +10,3 @@ "keywords": [ | ||
], | ||
"repository": "github:FNNDSC/playwright-test-coverage-native", | ||
"author": "FNNDSC <dev@babyMRI.org>", | ||
@@ -12,0 +13,0 @@ "license": "MIT", |
# playwright-test-coverage-native | ||
[](https://github.com/FNNDSC/playwright-test-coverage-native/blob/main/LICENSE) | ||
[](https://www.npmjs.com/package/playwright-test-coverage-native) | ||
Measure test coverage with Playwright. | ||
@@ -7,2 +10,16 @@ Its only dependency is `@playwright/test` — unlike its [alternatives](#alternatives), `playwright-test-coverage-native` uses Playwright's | ||
## Installation | ||
Using NPM: | ||
```shell | ||
npm i -D playwright-test-coverage-native | ||
``` | ||
Using [PNPM](https://pnpm.io/): | ||
```shell | ||
pnpm i -D playwright-test-coverage-native | ||
``` | ||
## Configuration | ||
@@ -34,3 +51,3 @@ | ||
## Usage | ||
## Post-processing | ||
@@ -37,0 +54,0 @@ Install [c8](https://www.npmjs.com/package/c8). |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
5896
10.06%63
36.96%