Registry / testing / babel-7-jest

babel-7-jest

JSON →
library21.3.3jsnpmunverified

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.

npm install babel-7-jest
INSTALL
IMPORT
SIG · BABEL-7-JEST
B
babel-7-jest
testingjavascriptv21.3.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

babel-7-jest
"babel-7-jest" (string in jest config)
import babel7Jest from 'babel-7-jest'
Used as a transform string in Jest configuration, not imported in source code.

Demonstrates deprecated setup: configure Jest to use babel-7-jest transform for JavaScript files.

// package.json snippet (not runnable alone) { "scripts": { "test": "jest" }, "jest": { "transform": { ".js$": "babel-7-jest" } }, "devDependencies": { "@babel/core": "^7.0.0", "babel-7-jest": "^21.3.3", "jest": "^21.0.0" } } // No JS code needed; config-based transform.
Debug
Known issues
deprecatedPackage is deprecated; use official babel-jest with babel-core@7.0.0-bridge.0 instead.
fix
npm uninstall babel-7-jest && npm install --save-dev babel-jest @babel/core babel-core@7.0.0-bridge.0
affects: >=0.0.0
breakingRequires exact @babel/core version matching peer dep (^7.0.0-alpha/beta).
fix
Use @babel/core ^7.0.0
affects: >=21.0.0
gotchaNot compatible with Jest versions beyond 21.x due to API changes.
fix
Upgrade to official babel-jest for Jest 22+
affects: >=21.0.0
Errors
Common errors & fixes
Cannot find module '@babel/core'
@babel/core not installed or peer dep not satisfied
fix
npm install --save-dev @babel/core@^7.0.0
babel-7-jest is deprecated. Use babel-jest instead.
Using deprecated package; npm warns on install
fix
Remove babel-7-jest and configure babel-jest as per official docs
Upgrade
Version history
21.3.3latest on npm
Audit
Dependencies
@babel/corerequiredpeer dependency required for Babel transformation
Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
babel-7-jest — npm install babel-7-jest · libregistry