We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b563af4 commit 69933e2Copy full SHA for 69933e2
src/renderers/testing/ReactShallowRenderer.js
@@ -129,6 +129,11 @@ class ReactShallowRenderer {
129
ReactReconciler.unmountComponent(this._instance, false);
130
}
131
132
+ unstable_batchedUpdates(callback, bookkeeping) {
133
+ // This is used by Enzyme for fake-simulating events in shallow mode.
134
+ injectDefaults();
135
+ return ReactUpdates.batchedUpdates(callback, bookkeeping);
136
+ }
137
_render(element, transaction, context) {
138
if (this._instance) {
139
ReactReconciler.receiveComponent(
0 commit comments