Skip to content

Commit af7d94d

Browse files
author
Benjamin E. Coe
authored
feat!: new test-exclude with modified exclude rules (#179)
1 parent 04c1413 commit af7d94d

File tree

5 files changed

+89
-141
lines changed

5 files changed

+89
-141
lines changed

lib/parse-args.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Exclude = require('test-exclude')
1+
const defaultExclude = require('@istanbuljs/schema/default-exclude')
22
const findUp = require('find-up')
33
const { readFileSync } = require('fs')
44
const Yargs = require('yargs/yargs')
@@ -23,7 +23,7 @@ function buildYargs (withCommands = false) {
2323
})
2424
.option('exclude', {
2525
alias: 'x',
26-
default: Exclude.defaultExclude,
26+
default: defaultExclude,
2727
describe: 'a list of specific files and directories that should be excluded from coverage (glob patterns are supported)'
2828
})
2929
.option('include', {

lib/report.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Report {
2828
this.tempDirectory = tempDirectory
2929
this.watermarks = watermarks
3030
this.resolve = resolvePaths
31-
this.exclude = Exclude({
31+
this.exclude = new Exclude({
3232
exclude: exclude,
3333
include: include
3434
})

package-lock.json

Lines changed: 60 additions & 113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)