Test fails with "Cannot find module 'enzyme' from 'src/setupTests.js'"
andresj-acuna opened this issue · comments
Andrés Acuña commented
Vittorio commented
Did you install enzyme
itself?
Paúl commented
Hi Andrés! To fix this issue (don't forget we are using a no official Enzyme version).
Run this command if you have installed: $npm install --save-dev @wojtekmaj/enzyme-adapter-react-17
$ npm install --save-dev enzyme
The reason to install this => import Enzyme from 'enzyme';