0
votes

I am using Antd with React, Jest and Enzyme. While testing simple shallow rendering I am getting error

"Cannot find module 'enquire.js' from 'slider.js'"

at Resolver.resolveModule (node_modules\jest-resolve\build\index.js:151:17

at Object. (node_modules\react-slick\lib\slider.js:37:38)

at Object. (node_modules\react-slick\lib\index.js:3:18)index file, test file and Error

2
Please post the code you have so far in here, instead of linking to an image. Your package.json would be interesting as well.Björn Böing
Hey, I got answer here(github.com/ant-design/ant-design/issues/6317), thanks anywayShubham Madheysia

2 Answers

0
votes

I just want to copy the solution for this which where given here: https://github.com/ant-design/ant-design/issues/6317

For npm: rm -rf node_modules && npm install

For yarn: yarn upgrade

0
votes

I found a very short way of above, just try this :

npm i [email protected]

0.1.0 depend on version come out