@rajnikant04
It works !!
Nothing here yet.
Nothing here yet.
No blogs yet.
I am importing .scss files into another .scss file which is imported in components. but not working when testing component with jest and enzyme. importing like this: "@import "../../styles/global";" error thrown when testing component: "" ({ "Object.<anonymous>" :function ( module , exports , require , __dirname , __filename , global,jest){@import "../../styles/global"; ^ SyntaxError: Invalid or unexpected token at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/b uild/ScriptTransformer.js:289:17) at Object.<anonymous> (src/components/LoginForm/LoginForm.js:4:18) at Object.<anonymous> ( tests /components/loginFormComponent_tests.js:4: 18) I tried the solution mentioned above but didn't work. Please help !!