orionsoft-react-scripts
Version:
Orionsoft Configuration and scripts for Create React App.
14 lines (8 loc) • 502 B
Markdown
# babel-jest
[Babel](https://github.com/babel/babel) [jest](https://github.com/facebook/jest) plugin
## Usage
If you are already using `jest-cli`, just add `babel-jest` and it will automatically compile JavaScript code using babel.
```
npm install --save-dev babel-jest
```
If you would like to write your own preprocessor, uninstall and delete babel-jest and set the [config.scriptPreprocessor](http://facebook.github.io/jest/docs/api.html#scriptpreprocessor-string) option to your preprocessor.