We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a566f9 commit 610cc44Copy full SHA for 610cc44
packages/enzyme/src/ReactWrapper.js
@@ -651,7 +651,7 @@ class ReactWrapper {
651
throw new TypeError('your adapter does not support `simulateError`. Try upgrading it!');
652
}
653
654
- const rootNode = this[ROOT].getNodeInternal();
+ const rootNode = getRootNodeInternal(this);
655
const nodeHierarchy = [thisNode].concat(nodeParents(this, thisNode));
656
renderer.simulateError(nodeHierarchy, rootNode, error);
657
0 commit comments