@web/test-runner-core
Advanced tools
Comparing version 0.6.5 to 0.6.6
# @web/test-runner-core | ||
## 0.6.6 | ||
### Patch Changes | ||
- 4a6b9c2: make coverage work in watch mode | ||
## 0.6.5 | ||
@@ -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 = [ | ||
@@ -69,6 +73,9 @@ 'lines', | ||
const coverageMap = istanbul_lib_coverage_1.createCoverageMap(); | ||
const coverages = Array.from(sessions) | ||
let coverages = Array.from(sessions) | ||
.map(s => s.testCoverage) | ||
.filter(c => c); | ||
coverages.push(...browserCoverage); | ||
// istanbul mutates the coverage objects, which pollutes coverage in watch mode | ||
// cloning prevents this | ||
coverages = clone_1.default(coverages); | ||
addingMissingCoverageBranches(coverages); | ||
@@ -75,0 +82,0 @@ for (const coverage of coverages) { |
{ | ||
"name": "@web/test-runner-core", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"publishConfig": { | ||
@@ -37,2 +37,4 @@ "access": "public" | ||
"dependencies": { | ||
"@types/clone": "^0.1.30", | ||
"clone": "^2.1.2", | ||
"istanbul-lib-coverage": "^3.0.0", | ||
@@ -39,0 +41,0 @@ "picomatch": "^2.2.2", |
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
71068
861
5
+ Added@types/clone@^0.1.30
+ Addedclone@^2.1.2
+ Added@types/clone@0.1.30(transitive)
+ Addedclone@2.1.2(transitive)