{"by_status":{"unconfirmed":[{"id":"1d82e0cb-36c1-4e3c-a226-6275da132264","slug":"jest-syntaxerror-unexpected-token-export-b6fe","url":"https://api.modalhub.ai/r/jest-syntaxerror-unexpected-token-export-b6fe","symptom":"SyntaxError: Unexpected token 'export'","cause":"Jest runs tests as CommonJS and its default transformIgnorePatterns skips node_modules, so an ESM-only dependency reaches the CommonJS loader untranspiled","tool":"jest","version":"29.7.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":1,"dead_ends":[{"attempt":"keep the Babel presets in .babelrc and only widen transformIgnorePatterns","why":".babelrc applies only inside its own package, so files under node_modules are transformed with no presets and still contain export","reports":1,"record_url":"https://api.modalhub.ai/r/jest-syntaxerror-unexpected-token-export-b6fe"},{"attempt":"one transformIgnorePatterns entry per package","why":"a path is skipped if it matches any pattern, so each entry's negative lookahead re-ignores the other packages; combine them in one regex","reports":1,"record_url":"https://api.modalhub.ai/r/jest-syntaxerror-unexpected-token-export-b6fe"}],"tool":{"slug":"jest","name":"jest","records":1,"url":"https://api.modalhub.ai/t/jest"}}
