From dacdf759bf866636794503032f902650025c19ed Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Fri, 4 May 2018 10:10:40 +0200 Subject: [PATCH] cmon flow, be nice --- packages/jest-cli/src/format_why_node_running.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/jest-cli/src/format_why_node_running.js b/packages/jest-cli/src/format_why_node_running.js index 84bc6ddc6415..9c02ca79739f 100644 --- a/packages/jest-cli/src/format_why_node_running.js +++ b/packages/jest-cli/src/format_why_node_running.js @@ -7,9 +7,15 @@ * @flow */ +import type {OpenHandle} from 'types/TestResult'; + import util from 'util'; -export default function formatWhyRunning(whyRunning) { +type WhyIsNodeRunningCb = ({error: (...args: string) => void}) => void; + +export default function formatWhyRunning( + whyRunning: WhyIsNodeRunningCb, +): Array { const whyRunningArray = []; const fakeLogger = { error(...args) {