babel-preset-jest
npmv30.5.0> Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/jestjs/jest/tree/main/packages/babel-jest).
Adopt with care
babel-preset-jest is usable, with caveats. Pulls in 26 transitive packages, about 4.2 MB installed.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 13 days ago. 12 releases in the last 2 years.
- CWeight: grade C, Fair — worth a look.
Pulls in 26 transitive packages, about 4.2 MB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 5 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding babel-preset-jest to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing babel-preset-jest, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the babel-preset-jest README.
module.exports = {
presets: ['jest'],
};Dependencies
Declared by babel-preset-jest v30.5.0. Runtime dependencies are installed with the package; dev dependencies are not.
Peer (1)
Used by
Popular packages that depend on babel-preset-jest.
Relationship graph
Dependencies (left) and dependents (right) of babel-preset-jest.
Frequently installed together
A drop-in replacement for fs, making various improvements.
Convert Windows backslash paths to slash paths
No description provided.
A babel plugin that adds istanbul instrumentation to ES6 code
TypeScript definitions for @babel/core
Release history
12 releases in the last two years, typically about 70 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 30.5.0latest | 13 days ago | 2.8 KB | MIT |
| 30.4.0 | 4 months ago | 2.7 KB | MIT |
| 30.3.0 | 6 months ago | 2.7 KB | MIT |
| 30.2.0 | 11 months ago | 2.7 KB | MIT |
| 30.0.1 | 1 year ago | 2.7 KB | MIT |
| 30.0.0 | 1 year ago | 2.7 KB | MIT |
| 30.0.0-beta.8 | 1 year ago | 2.7 KB | MIT |
| 30.0.0-beta.7 | 1 year ago | 2.7 KB | MIT |
| 30.0.0-beta.6 | 1 year ago | 2.7 KB | MIT |
| 30.0.0-beta.4 | 1 year ago | 2.7 KB | MIT |
| 30.0.0-beta.3 | 1 year ago | 2.7 KB | MIT |
| 30.0.0-alpha.7 | 1 year ago | 2.7 KB | MIT |
| 30.0.0-alpha.6 | 2 years ago | 2.7 KB | MIT |
| 30.0.0-alpha.5 | 2 years ago | 2.7 KB | MIT |
| 30.0.0-alpha.4 | 2 years ago | 2.7 KB | MIT |
Overview
babel-preset-jest is an npm package that > Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/jestjs/jest/tree/main/packages/babel-jest). It has 1 known dependents in the graph. The latest version is 30.5.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need > Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/jestjs/jest/tree/main/packages/babel-jest) and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use babel-preset-jest?
babel-preset-jest is usable, with caveats. Pulls in 26 transitive packages, about 4.2 MB installed.
How do I install babel-preset-jest?
Run `npm install babel-preset-jest` to add babel-preset-jest to your npm project.
How many dependencies does babel-preset-jest have?
babel-preset-jest declares 3 direct dependencies and pulls in 26 packages in total once its runtime tree is resolved totalling about 4.2 MB on disk.
What license is babel-preset-jest released under?
babel-preset-jest is distributed under the MIT license.
How popular is babel-preset-jest?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on babel-preset-jest.
Is babel-preset-jest still maintained?
The most recent release of babel-preset-jest (v30.5.0) was published 13 days ago.
Does babel-preset-jest run install scripts?
No. babel-preset-jest does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.