@web/test-runner-coverage-v8
Advanced tools
Comparing version 0.0.3 to 0.0.4
# @web/test-runner-coverage-v8 | ||
## 0.0.4 | ||
### Patch Changes | ||
- ad11e36: resolve coverage include/exclude patterns | ||
## 0.0.3 | ||
@@ -4,0 +10,0 @@ |
@@ -8,4 +8,4 @@ /// <reference types="node" /> | ||
}; | ||
export declare function v8ToIstanbul(config: TestRunnerCoreConfig, testFiles: string[], coverage: V8Coverage[]): Promise<CoverageMapData>; | ||
export { V8Coverage }; | ||
export declare function v8ToIstanbul(config: TestRunnerCoreConfig, testFiles: string[], coverage: V8Coverage[]): Promise<CoverageMapData>; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -12,2 +12,4 @@ "use strict"; | ||
const cachedMatchers = new Map(); | ||
// coverage base dir must be separated with "/" | ||
const coverageBaseDir = process.cwd().split(path_1.sep).join('/'); | ||
function getMatcher(patterns) { | ||
@@ -20,3 +22,6 @@ if (!patterns || patterns.length === 0) { | ||
if (!matcher) { | ||
matcher = picomatch_1.default(patterns); | ||
const resolvedPatterns = patterns.map(pattern => !path_1.isAbsolute(pattern) && !pattern.startsWith('*') | ||
? path_1.posix.join(coverageBaseDir, pattern) | ||
: pattern); | ||
matcher = picomatch_1.default(resolvedPatterns); | ||
cachedMatchers.set(key, matcher); | ||
@@ -23,0 +28,0 @@ } |
{ | ||
"name": "@web/test-runner-coverage-v8", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8526
86
0