The transformIgnorePatterns didn’t work for me until I changed my .babelrc to babel.config.js, like this:
module.exports = {
"presets": [
"@babel/preset-env"
]
};
as seen on this comment: https://github.com/facebook/jest/issues/6229#issuecomment-403539460