Jest fails Cannot find module 'react/lib/React' from 'ReactShallowRenderer.js' after React 16 upgrade
When used with React 16, Enzyme requires v16.x.x
of react-test-renderer
to be installed.
Worked for me by following below comand
npm uninstall react-dom
and then
npm install react-dom --save-dev