We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--check-coverage
1 parent 1a0ad0b commit 00bbeb2Copy full SHA for 00bbeb2
bin/nyc.js
@@ -129,9 +129,17 @@ if (argv._[0] === 'report') {
129
}
130
sw([wrapper], env)
131
132
+ // Both running the test script invocation and the check-coverage run may
133
+ // set process.exitCode. Keep track so that both children are run, but
134
+ // a non-zero exit codes in either one leads to an overall non-zero exit code.
135
+ process.exitCode = 0
136
foreground(nyc.mungeArgs(argv), function (done) {
137
+ var mainChildExitCode = process.exitCode
138
+
139
if (argv.checkCoverage) {
140
checkCoverage(argv, function (done) {
141
+ process.exitCode = process.exitCode || mainChildExitCode
142
143
if (!argv.silent) report(argv)
144
return done()
145
})
0 commit comments