summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--flow-libs/tests.js.flow7
1 files changed, 7 insertions, 0 deletions
diff --git a/flow-libs/tests.js.flow b/flow-libs/tests.js.flow
new file mode 100644
index 0000000000..b1daeefa4c
--- /dev/null
+++ b/flow-libs/tests.js.flow
@@ -0,0 +1,7 @@
+// We use electron-mocha which has a child dependency on mocha.
+// However flow-typed does not automatically pull annotations for mocha.
+// These stubs remedy the absence of those.
+declare function describe(string, Function): void;
+declare function it(string, (done: Function) => any): Promise<any> | void;
+declare function afterEach((done: Function) => void): Promise<any> | void;
+declare function beforeEach((done: Function) => void): Promise<any> | void;