From 9a48b5ca7b007c850054fef7a7439f06b3e10f80 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Mon, 15 Aug 2016 10:04:22 -0700 Subject: [PATCH] Fix flow (#7499) ReactElement requires a generic argument now and the return function of render is a ReactTestInstance and not a ReactElement. --- src/renderers/testing/ReactTestMount.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderers/testing/ReactTestMount.js b/src/renderers/testing/ReactTestMount.js index 12824873e0..a58acb15af 100644 --- a/src/renderers/testing/ReactTestMount.js +++ b/src/renderers/testing/ReactTestMount.js @@ -132,8 +132,8 @@ ReactTestInstance.prototype.toJSON = function() { var ReactTestMount = { render: function( - nextElement: ReactElement - ): ?ReactElement { + nextElement: ReactElement + ): ReactTestInstance { var nextWrappedElement = React.createElement( TopLevelWrapper, { child: nextElement }