ReactElement requires a generic argument now and the return function of render is a ReactTestInstance and not a ReactElement.
(cherry picked from commit 9a48b5ca7b)
This commit is contained in:
Christopher Chedeau
2016-08-15 15:51:48 -07:00
committed by Paul O’Shannessy
parent 814be45aa8
commit df4356133d
+2 -2
View File
@@ -137,8 +137,8 @@ ReactTestInstance.prototype.toJSON = function() {
var ReactTestMount = {
render: function(
nextElement: ReactElement
): ?ReactElement<any, any, any> {
nextElement: ReactElement<any>
): ReactTestInstance {
var nextWrappedElement = new ReactElement(
TopLevelWrapper,
null,