monocart-coverage-reports
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -27,3 +27,3 @@ // https://github.com/demurgos/v8-coverage | ||
// position mapping for conversion between offset and line/column | ||
const { Locator } = require('monocart-formatter/node'); | ||
const { Locator } = require('monocart-formatter'); | ||
const findOriginalRange = require('./find-original-range.js'); | ||
@@ -30,0 +30,0 @@ const { getJsAstInfo, getCssAstInfo } = require('./ast.js'); |
{ | ||
"name": "monocart-coverage-reports", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "Monocart coverage reports", | ||
@@ -20,3 +20,3 @@ "main": "lib/index.js", | ||
"build": "sf lint && sf b -p && npm run build-test", | ||
"test-node": "npm run test-node-env && npm run test-node-api && npm run test-node-fgc && npm run test-node-ins && npm run test-node-cdp", | ||
"test-node": "npm run test-node-env && npm run test-node-api && npm run test-node-ins && npm run test-node-cdp", | ||
"test-node-env": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage-env node ./test/test-node-env.js && node ./test/generate-node-report.js", | ||
@@ -52,4 +52,4 @@ "test-node-api": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage-api node ./test/test-node-api.js", | ||
"lz-utils": "~2.0.1", | ||
"monocart-code-viewer": "^1.0.13", | ||
"monocart-formatter": "~2.2.1", | ||
"monocart-code-viewer": "~1.0.13", | ||
"monocart-formatter": "~2.3.0", | ||
"turbogrid": "~3.0.12" | ||
@@ -56,0 +56,0 @@ }, |
@@ -6,3 +6,5 @@ # Monocart Coverage Reports | ||
![](https://img.shields.io/github/license/cenfun/monocart-coverage-reports) | ||
![](https://img.shields.io/github/actions/workflow/status/cenfun/monocart-coverage-reports/static.yml) | ||
> Code coverage tool to generate native [V8](https://v8.dev/blog/javascript-code-coverage) reports or [Istanbul](https://istanbul.js.org/) reports. | ||
@@ -225,5 +227,2 @@ | ||
- Using [foreground-child](https://github.com/tapjs/foreground-child) + NODE_V8_COVERAGE | ||
- example: [./test/test-node-fgc.js](./test/test-node-fgc.js) | ||
- Using [Inspector](https://nodejs.org/docs/latest/api/inspector.html) API (or module [collect-v8-coverage](https://github.com/SimenB/collect-v8-coverage)) | ||
@@ -331,3 +330,3 @@ - Connecting to the V8 inspector and enable V8 coverage. | ||
/* v8 ignore next 3 */ | ||
// v8 ignore next 3 | ||
if (platform === 'linux') { | ||
@@ -385,3 +384,3 @@ console.info('hello linux'); | ||
``` | ||
see devtools-protocol [ScriptCoverage](https://chromedevtools.github.io/devtools-protocol/tot/Profiler/#type-ScriptCoverage) | ||
see devtools-protocol [ScriptCoverage](https://chromedevtools.github.io/devtools-protocol/tot/Profiler/#type-ScriptCoverage) and [v8-coverage](https://github.com/bcoe/v8-coverage) | ||
@@ -388,0 +387,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
810934
391
+ Addedmonocart-code-viewer@1.0.13(transitive)
+ Addedmonocart-formatter@2.3.3(transitive)
- Removedmonocart-code-viewer@1.1.4(transitive)
- Removedmonocart-formatter@2.2.1(transitive)
Updatedmonocart-code-viewer@~1.0.13
Updatedmonocart-formatter@~2.3.0