{"id":18976,"library":"babel-7-jest","title":"babel-7-jest","description":"Deprecated Jest transform plugin bridging babel-jest with @babel/core v7 before official support existed. Latest version 21.3.3, originally required @babel/core ^7.0.0-alpha/beta. Now superseded by babel-jest with babel-core@7.0.0-bridge.0. Do not use for new projects; official solution is stable and actively maintained.","status":"deprecated","version":"21.3.3","language":"javascript","source_language":"en","source_url":"https://github.com/Sneezoo/babel-7-jest","tags":["javascript"],"install":[{"cmd":"npm install babel-7-jest","lang":"bash","label":"npm"},{"cmd":"yarn add babel-7-jest","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-7-jest","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for Babel transformation","package":"@babel/core","optional":false}],"imports":[{"note":"Used as a transform string in Jest configuration, not imported in source code.","wrong":"import babel7Jest from 'babel-7-jest'","symbol":"babel-7-jest","correct":"\"babel-7-jest\" (string in jest config)"}],"quickstart":{"code":"// package.json snippet (not runnable alone)\n{\n  \"scripts\": {\n    \"test\": \"jest\"\n  },\n  \"jest\": {\n    \"transform\": {\n      \".js$\": \"babel-7-jest\"\n    }\n  },\n  \"devDependencies\": {\n    \"@babel/core\": \"^7.0.0\",\n    \"babel-7-jest\": \"^21.3.3\",\n    \"jest\": \"^21.0.0\"\n  }\n}\n// No JS code needed; config-based transform.","lang":"javascript","description":"Demonstrates deprecated setup: configure Jest to use babel-7-jest transform for JavaScript files."},"warnings":[{"fix":"npm uninstall babel-7-jest && npm install --save-dev babel-jest @babel/core babel-core@7.0.0-bridge.0","message":"Package is deprecated; use official babel-jest with babel-core@7.0.0-bridge.0 instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use @babel/core ^7.0.0","message":"Requires exact @babel/core version matching peer dep (^7.0.0-alpha/beta).","severity":"breaking","affected_versions":">=21.0.0"},{"fix":"Upgrade to official babel-jest for Jest 22+","message":"Not compatible with Jest versions beyond 21.x due to API changes.","severity":"gotcha","affected_versions":">=21.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install --save-dev @babel/core@^7.0.0","cause":"@babel/core not installed or peer dep not satisfied","error":"Cannot find module '@babel/core'"},{"fix":"Remove babel-7-jest and configure babel-jest as per official docs","cause":"Using deprecated package; npm warns on install","error":"babel-7-jest is deprecated. Use babel-jest instead."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}