{"id":20709,"library":"webpack-babel-jest","title":"webpack-babel-jest","description":"A Jest preprocessor plugin that integrates Webpack and Babel for testing JavaScript files. Version 1.0.4 (latest) is deprecated in favor of modern Jest transform patterns. It works with old Jest configuration (scriptPreprocessor) and Babel-Jest, automatically ignoring CSS/SCSS/LESS imports. No active maintenance since 2016.","status":"deprecated","version":"1.0.4","language":"javascript","source_language":"en","source_url":"https://github.com/atecarlos/webpack-babel-jest","tags":["javascript"],"install":[{"cmd":"npm install webpack-babel-jest","lang":"bash","label":"npm"},{"cmd":"yarn add webpack-babel-jest","lang":"bash","label":"yarn"},{"cmd":"pnpm add webpack-babel-jest","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency for Babel transformation","package":"babel-jest","optional":false}],"imports":[{"note":"This is a preprocessor script, not a module you import directly.","wrong":"import webpackBabelJest from 'webpack-babel-jest';","symbol":"default","correct":"Not imported; configured via package.json jest.scriptPreprocessor"},{"note":"Must be a string path, not a module reference.","wrong":"scriptPreprocessor: require('webpack-babel-jest')","symbol":"scriptPreprocessor","correct":"jest.scriptPreprocessor = '<rootDir>/node_modules/webpack-babel-jest';"}],"quickstart":{"code":"// package.json\n{\n  \"devDependencies\": {\n    \"webpack-babel-jest\": \"*\",\n    \"jest-cli\": \"*\"\n  },\n  \"scripts\": {\n    \"test\": \"jest\"\n  },\n  \"jest\": {\n    \"scriptPreprocessor\": \"<rootDir>/node_modules/webpack-babel-jest\",\n    \"testFileExtensions\": [\"es6\", \"js\"],\n    \"moduleFileExtensions\": [\"js\", \"json\", \"es6\"]\n  }\n}","lang":"javascript","description":"Shows typical package.json configuration for using this preprocessor with Jest."},"warnings":[{"fix":"Use modern Jest transform: transform: { '^.+\\\\.js$': 'babel-jest' }","message":"This package is unmaintained and relies on old Jest APIs.","severity":"deprecated","affected_versions":"*"},{"fix":"Remove scriptPreprocessor, use transform: { '^.+\\\\.js$': 'babel-jest' }","message":"Jest v20+ removed scriptPreprocessor; you must use transform instead.","severity":"breaking","affected_versions":">=20"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install locally: npm install --save-dev webpack-babel-jest; check node_modules path.","cause":"Incorrect path or module not installed in project root.","error":"Could not find module 'webpack-babel-jest' from 'rootDir'"},{"fix":"Install babel-jest: npm install --save-dev babel-jest","cause":"babel-jest is a required peer dependency not installed.","error":"Cannot find module 'babel-jest'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}