1Add this in your package.json jest config.
2
3"transform": {
4 "\\.js$": "<rootDir>/node_modules/babel-jest"
5 },
6Let me know if the issue still persists.
1npm test -- --transformIgnorePatterns "node_modules/(?!(your-untranspiled-module|some-other-module)/)"