@web/test-runner-core
Advanced tools
Comparing version 0.6.9 to 0.6.10
# @web/test-runner-core | ||
## 0.6.10 | ||
### Patch Changes | ||
- 1ebbf4a: fix deep cloning causing slow coverage measurements | ||
## 0.6.9 | ||
@@ -4,0 +10,0 @@ |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getTestCoverage = exports.coverageTypes = void 0; | ||
const istanbul_lib_coverage_1 = require("istanbul-lib-coverage"); | ||
const clone_1 = __importDefault(require("clone")); | ||
exports.coverageTypes = [ | ||
@@ -78,4 +74,5 @@ 'lines', | ||
// istanbul mutates the coverage objects, which pollutes coverage in watch mode | ||
// cloning prevents this | ||
coverages = clone_1.default(coverages); | ||
// cloning prevents this. JSON stringify -> parse is faster than a fancy library | ||
// because we're only working with objects and arrays | ||
coverages = JSON.parse(JSON.stringify(coverages)); | ||
addingMissingCoverageBranches(coverages); | ||
@@ -82,0 +79,0 @@ for (const coverage of coverages) { |
{ | ||
"name": "@web/test-runner-core", | ||
"version": "0.6.9", | ||
"version": "0.6.10", | ||
"publishConfig": { | ||
@@ -37,3 +37,2 @@ "access": "public" | ||
"dependencies": { | ||
"clone": "^2.1.2", | ||
"istanbul-lib-coverage": "^3.0.0", | ||
@@ -44,3 +43,2 @@ "picomatch": "^2.2.2", | ||
"devDependencies": { | ||
"@types/clone": "^0.1.30", | ||
"@types/istanbul-lib-coverage": "^2.0.2", | ||
@@ -47,0 +45,0 @@ "@types/uuid": "^8.0.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
70300
3
2
847
- Removedclone@^2.1.2
- Removedclone@2.1.2(transitive)