You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the update function doesn't update, it only outputs the already rendered output.
I use enzyme-to-json to do a "toMatchSnapshot", but when i change the state or simulate an event the snapshot stays the same even when i run component.update();
What i found out is:
In ShallowWrapper.js on line 164 het update function only requests the rendered output _this2.node = _this2.renderer.getRenderOutput();
when i add _this2.renderer.render(_this2.node, _this2.options);
It works fine
The text was updated successfully, but these errors were encountered:
It seems the update function doesn't update, it only outputs the already rendered output.
I use enzyme-to-json to do a "toMatchSnapshot", but when i change the state or simulate an event the snapshot stays the same even when i run component.update();
What i found out is:
In ShallowWrapper.js on line 164 het update function only requests the rendered output
_this2.node = _this2.renderer.getRenderOutput();
when i add
_this2.renderer.render(_this2.node, _this2.options);
It works fine
The text was updated successfully, but these errors were encountered: