Comparing version 7.12.0 to 7.13.0
@@ -11,2 +11,3 @@ export type Watermark = [number, number]; | ||
reportsDirectory?: string, | ||
reporterOptions?: Record<string, Record<string, unknown>> | ||
tempDirectory?: string, | ||
@@ -24,5 +25,7 @@ watermarks?: Partial<{ | ||
src?: Array<string>, | ||
allowExternal?: boolean | ||
allowExternal?: boolean, | ||
skipFull?: boolean, | ||
excludeNodeModules?: boolean | ||
}) | ||
run(): Promise<void>; | ||
} |
@@ -22,2 +22,3 @@ const Exclude = require('test-exclude') | ||
reporter, | ||
reporterOptions, | ||
reportsDirectory, | ||
@@ -36,2 +37,3 @@ tempDirectory, | ||
this.reporter = reporter | ||
this.reporterOptions = reporterOptions || {} | ||
this.reportsDirectory = reportsDirectory | ||
@@ -79,3 +81,4 @@ this.tempDirectory = tempDirectory | ||
skipFull: this.skipFull, | ||
maxCols: process.stdout.columns || 100 | ||
maxCols: process.stdout.columns || 100, | ||
...this.reporterOptions[_reporter] | ||
}).execute(context) | ||
@@ -82,0 +85,0 @@ } |
{ | ||
"name": "c8", | ||
"version": "7.12.0", | ||
"version": "7.13.0", | ||
"description": "output coverage reports using Node.js' built in coverage", | ||
@@ -50,3 +50,3 @@ "main": "./index.js", | ||
"devDependencies": { | ||
"@types/node": "^17.0.23", | ||
"@types/node": "^18.0.0", | ||
"chai": "^4.3.6", | ||
@@ -53,0 +53,0 @@ "chai-jest-snapshot": "^2.0.0", |
# c8 - native V8 code-coverage | ||
![ci](https://img.shields.io/github/workflow/status/bcoe/c8/ci?label=ci&logo=github) | ||
[![ci](https://github.com/bcoe/c8/actions/workflows/ci.yaml/badge.svg)](https://github.com/bcoe/c8/actions/workflows/ci.yaml) | ||
![nycrc config on GitHub](https://img.shields.io/nycrc/bcoe/c8) | ||
@@ -43,2 +43,3 @@ [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://www.conventionalcommits.org/) | ||
| `--check-coverage` | check whether coverage is within thresholds provided | `boolean` | `false` | | ||
| `--per-file` | check thresholds per file | `boolean` | `false` | | ||
| `--temp-directory` | directory V8 coverage data is written to and read from | `string` | `process.env.NODE_V8_COVERAGE` | | ||
@@ -45,0 +46,0 @@ | `--clean` | should temp files be deleted before script execution | `boolean` | `true` | |
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
36202
805
175