Comparing version 7.11.3 to 7.12.0
@@ -77,3 +77,3 @@ const Exclude = require('test-exclude') | ||
skipFull: this.skipFull, | ||
maxCols: 100 | ||
maxCols: process.stdout.columns || 100 | ||
}).execute(context) | ||
@@ -80,0 +80,0 @@ } |
{ | ||
"name": "c8", | ||
"version": "7.11.3", | ||
"version": "7.12.0", | ||
"description": "output coverage reports using Node.js' built in coverage", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -39,2 +39,3 @@ # c8 - native V8 code-coverage | ||
| `-x`, `--exclude` | see [section below](#checking-for-full-source-coverage-using---all) for more info | `Array<string>` | [list](https://github.com/istanbuljs/schema/blob/master/default-exclude.js) | | ||
| `--exclude-after-remap` | see [section below](#exclude-after-remap) for more info | `boolean` | `false` | | ||
| `-e`, `--extension` | only files matching these extensions will show coverage | `string \| Array<string>` | [list](https://github.com/istanbuljs/schema/blob/master/default-extension.js) | | ||
@@ -57,2 +58,20 @@ | `--skip-full` | do not show files with 100% statement, branch, and function coverage | `boolean` | `false` | | ||
## SourceMap Support | ||
`c8` can handle source-maps, for remapping coverage from generated code to original source files (_useful for TypeScript, JSX, etc_). | ||
### Source map files versus inline source maps | ||
Just-in-time instrumented codebases will often insert source maps inline with the `.js` code they generate at runtime (e.g, `@babel/register` can be configured to insert a source map footer). | ||
Pre-instrumented codebases, e.g., running `tsc` to generate `.js` in a build folder, may generate either inline source maps, or a separate `.map` file stored on disk. | ||
`c8` can handle loading both types of source maps. | ||
### Exclude after remap | ||
Depending on the size and configuration of your project, it may be preferable to apply exclusion logic either before or after source-maps are used to remap compiled to original source files. | ||
`--exclude-after-remap` is used to control this behaviour. | ||
## c8 report | ||
@@ -59,0 +78,0 @@ |
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
35861
174