Skip to content
/ jest Public
forked from jestjs/jest

Commit

Permalink
less if
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 4, 2018
1 parent f17a60d commit dd71548
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/jest-cli/src/run_jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,10 @@ const processResults = (runResults, options) => {
onComplete,
outputStream,
testResultsProcessor,
whyRunning,
whyRunning = () => {},
} = options;

if (whyRunning) {
runResults.openHandles = formatWhyRunning(whyRunning);
} else {
runResults.openHandles = [];
}
runResults.openHandles = formatWhyRunning(whyRunning);

if (testResultsProcessor) {
/* $FlowFixMe */
Expand Down

0 comments on commit dd71548

Please sign in to comment.