
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
@connectis/coverage-merger
Advanced tools
A Node.js library for merging parsed coverage reports.
This library makes it possible to merge parsed coverage results. The following parsers are supported:
const coverageMerger = require('@connectis/coverage-merger');
const mergedResults = coverageMerger.mergeByFile(coverageResults);
The API includes the following:
Merges coverage results which have the same value for the file
property.
Type: Array<CoverageResult
. See below.
Type: Array<CoverageResult
. See below.
Merges coverage results for which the grouper
iteratee returns the same string See _.groupBy.
Type: Array<CoverageResult
. See below.
Type: (CoverageResult) => String
. See below.
Type: Array<CoverageResult
. See below.
Merges an array of coverage results to a single result.
Type: Array<CoverageResult
. See below.
Type: CoverageResult
. See below.
The returned data has the following format.
{
"title": "Test #1",
"file": "/some/absolute/path/anim-base/anim-base-coverage.js",
"functions": {
"hit": 23,
"found": 29,
"details": [
{
"name": "(anonymous 1)",
"line": 7,
"hit": 6
},
{
"name": "(anonymous 2)",
"line": 620,
"hit": 225
},
{
"name": "_end",
"line": 516,
"hit": 228
}
]
},
"lines": {
"found": 181,
"hit": 143,
"details": [
{
"line": 7,
"hit": 6
},
{
"line": 29,
"hit": 6
},
{
"line": 41,
"hit": 0
}
]
},
"branches": {
"found": 2,
"hit": 1,
"details": [
{
"line": 9,
"branch": 0,
"taken": 0
},
{
"line": 9,
"branch": 1,
"taken": 1
}
]
}
}
FAQs
Library for merging parsed coverage reports.
The npm package @connectis/coverage-merger receives a total of 2,755 weekly downloads. As such, @connectis/coverage-merger popularity was classified as popular.
We found that @connectis/coverage-merger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.