We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85270ae commit ce95c3dCopy full SHA for ce95c3d
1 file changed
src/test/ReactTestUtils.js
@@ -43,7 +43,11 @@ function Event(suffix) {}
43
var ReactTestUtils = {
44
renderIntoDocument: function(instance) {
45
var div = document.createElement('div');
46
- document.documentElement.appendChild(div);
+ // None of our tests actually require attaching the container to the
47
+ // DOM, and doing so creates a mess that we rely on test isolation to
48
+ // clean up, so we're going to stop honoring the name of this method
49
+ // (and probably rename it eventually) if no problems arise.
50
+ // document.documentElement.appendChild(div);
51
return React.renderComponent(instance, div);
52
},
53
0 commit comments