Skip to content

Commit

Permalink
Do not run coverage report if ended with a signal
Browse files Browse the repository at this point in the history
Fix #445
  • Loading branch information
isaacs committed May 17, 2018
1 parent d5f7b12 commit 51ae4f2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bin/run.js
Expand Up @@ -480,12 +480,10 @@ const pipeToCoverageService = (service, options, child) => {
}

/* istanbul ignore next */
const runCoverageReport = (options, code, signal) => {
if (options.checkCoverage)
runCoverageCheck(options, code, signal)
else
runCoverageReportOnly(options, code, signal)
}
const runCoverageReport = (options, code, signal) =>
signal ? null
: options.checkCoverage ? runCoverageCheck(options, code, signal)
: runCoverageReportOnly(options, code, signal)

/* istanbul ignore next */
const runCoverageReportOnly = (options, code, signal) => {
Expand Down

0 comments on commit 51ae4f2

Please sign in to comment.