Files
sign-android-release/node_modules/babel-plugin-jest-hoist
Drew Heavner 8b97d1195a Adding updated node_modules
Bumping version to v1.0.3
Removing yarn.lock as this should be built with NPM
2020-11-13 16:28:52 -05:00
..
2020-11-13 19:11:55 +01:00
2020-11-12 18:00:41 -05:00
2020-11-13 16:28:52 -05:00
2019-11-08 09:40:34 -05:00

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

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

Via CLI

$ babel --plugins jest-hoist script.js

Via Node API

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