Closed Rahulgarg30591 closed 3 years ago
I just had the same problem. Moving the config (or at least parts of it) from the gulp task config to the package.json as described here solved it for me:
https://facebook.github.io/jest/docs/en/webpack.html#handling-static-assets
This is my gulp task for Jest testing.
But I am always getting this error:
How to get moduleNameMapper work, I want to mock all the CSS and SCSS files import of the component I am testing.
I am using "gulp-jest": "^3.0.1", "jest-cli": "^21.2.1",
Thank you.