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
In React 17 with components that use ReactDOM.createPortal(), the JSON changes with each run. The component's props contain strings like "_reactListeninga2u1embg03f" and "__reactEvents$nxgockfgcdd" which change. React 16 is not affected.
Obviously these are coming from react-dom but can anything be done? My snapshot tests fail with React 17.
In React 17 with components that use ReactDOM.createPortal(), the JSON changes with each run. The component's props contain strings like "_reactListeninga2u1embg03f" and "__reactEvents$nxgockfgcdd" which change. React 16 is not affected.
Obviously these are coming from react-dom but can anything be done? My snapshot tests fail with React 17.
See https://github.com/captain-igloo/enzyme-to-json-bug .
The text was updated successfully, but these errors were encountered: