github-pages-deploy-action/node_modules/babel-plugin-jest-hoist
James Ives 8fcf8339ce 3.4.9
2020-04-30 08:40:07 -04:00
..
build 3.4.9 2020-04-30 08:40:07 -04:00
node_modules/@babel 3.4.9 2020-04-30 08:40:07 -04:00
LICENSE 3.4.3 2020-03-31 08:42:07 -04:00
package.json 3.4.9 2020-04-30 08:40:07 -04:00
README.md 3.4.3 2020-03-31 08:42:07 -04: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'],
});