Syntax Error when test component with SASS file imported
If you have Babel in your stack, you can fix this in the right way using babel-jest Just do npm i –save-dev babel-jest and in your jest settings file add: “moduleNameMapper”: { “^.+\\.(css|less|scss)$”: “babel-jest” }