diff --git a/index.js.flow b/index.js.flow index c05fbd902..38670fc39 100644 --- a/index.js.flow +++ b/index.js.flow @@ -187,8 +187,8 @@ declare module.exports: { ( run: ContextualTest): void; (name: string, run: ContextualTest): void; - beforeEach : TestMethod; - afterEach : TestMethod; + beforeEach : ContextualTestMethod; + afterEach : ContextualTestMethod; serial : ContextualTestMethod; before : ContextualTestMethod; after : ContextualTestMethod; diff --git a/test/flow-types/regression-1114.js.flow b/test/flow-types/regression-1114.js.flow index 616668dbf..307e85799 100644 --- a/test/flow-types/regression-1114.js.flow +++ b/test/flow-types/regression-1114.js.flow @@ -26,7 +26,6 @@ test.cb(t => { }); test.beforeEach(t => { - // $ExpectError: Unknown property "context" const context = t.context; })