mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-06-08 18:04:29 +00:00
v6
This commit is contained in:
parent
cd5893b2c6
commit
70742d22d9
6774 changed files with 1602535 additions and 1 deletions
33
node_modules/babel-plugin-jest-hoist/README.md
generated
vendored
Normal file
33
node_modules/babel-plugin-jest-hoist/README.md
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
# 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/master/packages/babel-jest).
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
$ yarn add --dev babel-plugin-jest-hoist
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Via `babel.config.js` (Recommended)
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
plugins: ['jest-hoist'],
|
||||
};
|
||||
```
|
||||
|
||||
### Via CLI
|
||||
|
||||
```sh
|
||||
$ babel --plugins jest-hoist script.js
|
||||
```
|
||||
|
||||
### Via Node API
|
||||
|
||||
```javascript
|
||||
require('@babel/core').transform('code', {
|
||||
plugins: ['jest-hoist'],
|
||||
});
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue