diff --git a/src/test/ReactTestUtils.js b/src/test/ReactTestUtils.js index 8d34272703b1e..4b067f7ceed74 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;