stale/node_modules/babel-plugin-jest-hoist
PJ Quirk 0649bd8119
Add support to v1 to connect to GHES (#69)
* Bumping actions/github to 2.2.0 for GHES

* Husky commit correct node modules
2020-05-15 15:25:57 -04:00
..
build Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
LICENSE Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
README.md Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
package.json Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
tsconfig.json Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
tsconfig.tsbuildinfo Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00

README.md

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'],
});