diff --git a/src/test/ReactTestUtils.js b/src/test/ReactTestUtils.js index feb4301e314a6..0993152da73ef 100644 --- a/src/test/ReactTestUtils.js +++ b/src/test/ReactTestUtils.js @@ -435,6 +435,7 @@ ReactShallowRenderer.prototype.render = function(element, context) { var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(true); this._render(element, transaction, context); ReactUpdates.ReactReconcileTransaction.release(transaction); + return this; }; ReactShallowRenderer.prototype.unmount = function() {