diff --git a/src/test/ReactTestUtils.js b/src/test/ReactTestUtils.js index 8d34272703..4b067f7cee 100644 --- a/src/test/ReactTestUtils.js +++ b/src/test/ReactTestUtils.js @@ -74,6 +74,10 @@ var ReactTestUtils = { if (!ReactComponent.isValidComponent(inst)) { return false; } + if (inst.__realComponentInstance) { + // This is a descriptor membrane + return false; + } // We check the prototype of the type that will get mounted, not the // instance itself. This is a future proof way of duck typing. var prototype = inst.type.prototype;