From 8ba227e97738b3e641b433f206c7441cdcdf6975 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Fri, 4 May 2018 10:00:32 +0200 Subject: [PATCH] Revert "less if" This reverts commit dd7154835a0453a006d88b275acefd92661b9bc2. --- packages/jest-cli/src/run_jest.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/jest-cli/src/run_jest.js b/packages/jest-cli/src/run_jest.js index 2fb62db2b255..585872f45266 100644 --- a/packages/jest-cli/src/run_jest.js +++ b/packages/jest-cli/src/run_jest.js @@ -109,10 +109,14 @@ const processResults = (runResults, options) => { onComplete, outputStream, testResultsProcessor, - whyRunning = () => {}, + whyRunning, } = options; - runResults.openHandles = formatWhyRunning(whyRunning); + if (whyRunning) { + runResults.openHandles = formatWhyRunning(whyRunning); + } else { + runResults.openHandles = []; + } if (testResultsProcessor) { /* $FlowFixMe */