Skip to content

captain-igloo/enzyme-to-json-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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, see screenshot. React 16 is not affected.

Obviously these are coming from react-dom but can anything be done? My snapshot tests fail with React 17.

screenshot

cd react-17
npm install
npm run component-to-json

cd react-16
npm install
npm run component-to-json

See adriantoine/enzyme-to-json#178 .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published