1 parent 976826a commit fe9cecdCopy full SHA for fe9cecd
1 file changed
src/test/ReactTestUtils.js
@@ -74,6 +74,10 @@ var ReactTestUtils = {
74
if (!ReactComponent.isValidComponent(inst)) {
75
return false;
76
}
77
+ if (inst.__realComponentInstance) {
78
+ // This is a descriptor membrane
79
+ return false;
80
+ }
81
// We check the prototype of the type that will get mounted, not the
82
// instance itself. This is a future proof way of duck typing.
83
var prototype = inst.type.prototype;
0 commit comments