Jest is crashing

Thanks @sebavan, but I have been trying to do just that, I am sure it’s the problem but for some reason. It doesn’t fix the test crash even when I transform the entire node_modules.

// jest.config.json
{
    "setupFilesAfterEnv": ["jest-expect-message"],
    "transformIgnorePatterns": [],
    "transform": {
        "^.+\\.js$": "babel-jest",
        "^.+\\.ts$": "ts-jest"
    },
    "globals": {
        "NODE_ENV": "test"
    }
}
// .babelrc
{
    "presets": ["@babel/preset-env", "@babel/preset-react"],
    "plugins": [
        ["@babel/plugin-proposal-decorators", { "legacy": true }],
        ["@babel/plugin-proposal-class-properties", { "loose": true }],
        "@babel/plugin-proposal-optional-chaining",
        "@babel/plugin-transform-runtime",
        [
            "styled-components",
            { "ssr": false, "displayName": true, "preprocess": false }
        ]
    ],
    "env": {
        "production": {
            "plugins": [
                ["react-remove-properties", { "properties": ["data-testid"] }]
            ]
        },
        "test": {
            "presets": [
                [
                    "@babel/preset-env",
                    {
                        "modules": "auto"
                    },
                    "jest"
                ]
            ],
            "plugins": ["@babel/plugin-transform-modules-commonjs"]
        }
    }
}