babel-plugin-jest-hoist
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/facebook/jest/tree/main/packages/babel-jest)
Last updated 3 years ago by simenb .
MIT · Repository · Bugs · Original npm
$ cnpm install babel-plugin-jest-hoist 
SYNC missed versions from official npm registry.

babel-plugin-jest-hoist

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.

Installation

$ yarn add --dev babel-plugin-jest-hoist

Usage

Via babel.config.js (Recommended)

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

Via CLI

$ babel --plugins jest-hoist script.js

Via Node API

require('@babel/core').transform('code', {
  plugins: ['jest-hoist'],
});

Current Tags

  • 24.2.0-alpha.0                                ...           beta (6 years ago)
  • 25.2.1-alpha.2                                ...           canary (5 years ago)
  • 29.2.0                                ...           latest (3 years ago)
  • 29.0.0-alpha.3                                ...           next (3 years ago)
  • 21.3.0-beta.15                                ...           test (8 years ago)

27 Versions

  • 29.0.0-alpha.3                                ...           3 years ago
  • 29.2.0                                ...           3 years ago
  • 28.1.3                                ...           3 years ago
  • 28.0.0-alpha.9                                ...           3 years ago
  • 28.0.2                                ...           3 years ago
  • 28.0.0-alpha.6                                ...           3 years ago
  • 27.5.1                                ...           4 years ago
  • 27.4.0                                ...           4 years ago
  • 27.2.0                                ...           4 years ago
  • 27.0.0-next.10                                ...           4 years ago
  • 27.0.6                                ...           4 years ago
  • 27.0.0-next.0                                ...           5 years ago
  • 26.6.2                                ...           5 years ago
  • 26.2.0                                ...           5 years ago
  • 21.3.0-beta.15                                ...           8 years ago
  • 26.0.0-alpha.0                                ...           5 years ago
  • 25.2.1-alpha.2                                ...           5 years ago
  • 24.2.0-alpha.0                                ...           6 years ago
  • 26.1.0                                ...           5 years ago
  • 22.4.4                                ...           7 years ago
  • 23.2.0                                ...           7 years ago
  • 21.2.0                                ...           8 years ago
  • 19.0.0                                ...           9 years ago
  • 18.0.0                                ...           9 years ago
  • 20.0.3                                ...           8 years ago
  • 24.9.0                                ...           6 years ago
  • 25.5.0                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org