Skip to content

Commit

Permalink
feat!: new test-exclude with modified exclude rules (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored 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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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.

Loading

0 comments on commit af7d94d

Please sign in to comment.