Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: new test-exclude with modified exclude rules #179

Merged
merged 1 commit into from Dec 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/parse-args.js
@@ -1,4 +1,4 @@
const Exclude = require('test-exclude')
const defaultExclude = require('@istanbuljs/schema/default-exclude')
const findUp = require('find-up')
const { readFileSync } = require('fs')
const Yargs = require('yargs/yargs')
Expand All @@ -23,7 +23,7 @@ function buildYargs (withCommands = false) {
})
.option('exclude', {
alias: 'x',
default: Exclude.defaultExclude,
default: defaultExclude,
describe: 'a list of specific files and directories that should be excluded from coverage (glob patterns are supported)'
})
.option('include', {
Expand Down
2 changes: 1 addition & 1 deletion lib/report.js
Expand Up @@ -28,7 +28,7 @@ class Report {
this.tempDirectory = tempDirectory
this.watermarks = watermarks
this.resolve = resolvePaths
this.exclude = Exclude({
this.exclude = new Exclude({
exclude: exclude,
include: include
})
Expand Down
173 changes: 60 additions & 113 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.