You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: bin/nyc.js
+21-1
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,16 @@ var yargs = require('yargs/yargs')(process.argv.slice(2))
46
46
type: 'boolean',
47
47
describe: 'whether or not to instrument all files of the project (not just the ones touched by your test suite)'
48
48
})
49
+
.option('exclude',{
50
+
alias: 'x',
51
+
default: [],
52
+
describe: 'a list of specific files and directories that should be excluded from coverage, glob patterns are supported, node_modules is always excluded'
53
+
})
54
+
.option('include',{
55
+
alias: 'n',
56
+
default: [],
57
+
describe: 'a list of specific files that should be covered, glob patterns are supported'
58
+
})
49
59
.option('require',{
50
60
alias: 'i',
51
61
default: [],
@@ -109,9 +119,13 @@ if (argv._[0] === 'report') {
0 commit comments