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
A developer using Enzyme who reads this one-liner without reading the full docs will incorrectly believe that a call to mount() will re-mount any component. In fact, this method will only mount an unmounted component. It will do nothing if the component is already mounted.
A more precise summary would be something like:
.mount() => ReactWrapper
A method that (re-)mounts the component, if it is not currently mounted.
The
ReactWrapper
docs say:A developer using Enzyme who reads this one-liner without reading the full docs will incorrectly believe that a call to
mount()
will re-mount any component. In fact, this method will only mount an unmounted component. It will do nothing if the component is already mounted.A more precise summary would be something like:
mount.md
and the comments inReactWrapper.js
would need to be updated as well.The text was updated successfully, but these errors were encountered: