Test Against Different React Releases with Enzyme
Setting up Enzyme with different releases of React
At the time of writing these notes, Create React App uses React 16. In order to use Enzyme with React 16, we need to install the enzyme-adapter-react-16 package:
npm install --save-dev enzyme-adapter...
nothanii.hashnode.dev3 min read