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
If Blueprint.Portal was updated to make use of ReactDOM.createPortal, then components involving Blueprint.Portals would be much easier to unit test via Enzyme, because Enzyme's wrapper methods (find, etc.) are now able to work across portal boundaries.
It may even simplify the implementation of Blueprint.Portal.
The text was updated successfully, but these errors were encountered:
Enzyme has been updated to support React 16 Portals.
React 16 Portals: https://reactjs.org/docs/portals.html
Relevant Enzyme issue: enzymejs/enzyme#1150
Relevant Enzyme pull request: enzymejs/enzyme#1345
If Blueprint.Portal was updated to make use of ReactDOM.createPortal, then components involving Blueprint.Portals would be much easier to unit test via Enzyme, because Enzyme's wrapper methods (find, etc.) are now able to work across portal boundaries.
It may even simplify the implementation of Blueprint.Portal.
The text was updated successfully, but these errors were encountered: