I\'m implementing tests into an existing project that currently has no tests. My tests are failing to compile node_modules/ imports.
node_modules/
/Users/me/m
If none of the above solutions worked for you, you can try this in your jest
"moduleNameMapper": { "^lodash-es$": "lodash" }
It will replace lodash-es with the commonjs version during testing runtime.
lodash-es