Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat!: new test-exclude with modified exclude rules (#179)
  • Loading branch information
bcoe committed Dec 22, 2019
1 parent 04c1413 commit af7d94d
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 141 deletions.
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.

0 comments on commit af7d94d

Please sign in to comment.