From 89f0ae23bbb00baab4308218c1c0c47c9470e50e 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..3cf702b4f642 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: Array) => void}) => void; + +export default function formatWhyRunning( + whyRunning: WhyIsNodeRunningCb, +): Array { const whyRunningArray = []; const fakeLogger = { error(...args) {