</>PackageGraphPackageGraph

babel-plugin-jest-hoist

npmv30.5.0TypeScript

Babel plugin to hoist `jest.disableAutomock`, `jest.enableAutomock`, `jest.unmock`, `jest.mock`, calls above `import` statements. This plugin is automatically included when using [babel-jest](https://github.com/jestjs/jest/tree/main/packages/babel-jest).

Safe to adopt

Yes — babel-plugin-jest-hoist scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 13 days ago. 13 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 13 days ago. 13 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 8 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-plugin-jest-hoist to a project.

1
Direct dependencies

Runtime packages this one declares itself.

8
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

4.2 MB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing babel-plugin-jest-hoist, 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
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the babel-plugin-jest-hoist README.

module.exports = {
  plugins: ['jest-hoist'],
};

Dependencies

Declared by babel-plugin-jest-hoist v30.5.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (13)

@babel-8/core npm:@babel/core@^8.0.0@babel-8/preset-react npm:@babel/preset-react@^8.0.0@babel-8/preset-typescript npm:@babel/preset-typescript@^8.0.0@babel/core ^7.27.4@babel/preset-react ^7.27.1@babel/preset-typescript ^7.27.1@babel/types ^7.27.3@prettier/sync ^0.6.0@types/babel__template ^7.4.4@types/babel__traverse ^7.20.7@types/node *babel-plugin-tester ^11.0.4prettier ^3.0.3

Used by

Popular packages that depend on babel-plugin-jest-hoist.

Relationship graph

Dependencies (left) and dependents (right) of babel-plugin-jest-hoist.

@types/babel__corebabel-preset-jestbabel-plugin-jest…
babel-plugin-jest-hoist dependencies dependents

Frequently installed together

Release history

13 releases in the last two years, typically about 18 days apart.

Recent versions of babel-plugin-jest-hoist
VersionPublishedSizeLicense
30.5.0latest13 days ago14 KBMIT
30.4.04 months ago14 KBMIT
30.3.06 months ago14 KBMIT
30.2.011 months ago14 KBMIT
30.0.11 year ago14 KBMIT
30.0.01 year ago14 KBMIT
30.0.0-beta.81 year ago14 KBMIT
30.0.0-beta.71 year ago14 KBMIT
30.0.0-beta.61 year ago14 KBMIT
30.0.0-beta.41 year ago14 KBMIT
30.0.0-beta.31 year ago14 KBMIT
30.0.0-beta.11 year ago14 KBMIT
30.0.0-alpha.71 year ago14 KBMIT
30.0.0-alpha.62 years ago14 KBMIT
30.0.0-alpha.52 years ago14 KBMIT

Overview

babel-plugin-jest-hoist is an npm package that babel plugin to hoist `jest.disableAutomock`, `jest.enableAutomock`, `jest.unmock`, `jest.mock`, calls above `import` statements. This plugin 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 plugin to hoist `jest.disableAutomock`, `jest.enableAutomock`, `jest.unmock`, `jest.mock`, calls above `import` statements. This plugin 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 or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use babel-plugin-jest-hoist?

Yes — babel-plugin-jest-hoist scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 13 days ago. 13 releases in the last 2 years.

How do I install babel-plugin-jest-hoist?

Run `npm install babel-plugin-jest-hoist` to add babel-plugin-jest-hoist to your npm project.

How many dependencies does babel-plugin-jest-hoist have?

babel-plugin-jest-hoist declares 14 direct dependencies and pulls in 8 packages in total once its runtime tree is resolved totalling about 4.2 MB on disk.

What license is babel-plugin-jest-hoist released under?

babel-plugin-jest-hoist is distributed under the MIT license.

How popular is babel-plugin-jest-hoist?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on babel-plugin-jest-hoist.

Is babel-plugin-jest-hoist still maintained?

The most recent release of babel-plugin-jest-hoist (v30.5.0) was published 13 days ago.

Does babel-plugin-jest-hoist run install scripts?

No. babel-plugin-jest-hoist does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.