babel7-jest

Jest plugin to use babel 7 for transformation.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel7-jest
1.0.15 years ago5 years agoMinified + gzip package size for babel7-jest in KB

Readme

babel7-jest
Babel jest plugin
Note: this is forked from babel-jest v21.2.0 modified to use babel core version 7.

Setup

npm install --save-dev babel7-jest

To explicitly define babel7-jest as a transformer for your JavaScript code, map .js files to the babel-jest module.
"jest": {
  "transform": {
    "^.+\\.jsx?$": "babel7-jest"
  }
},

If you would like to write your own preprocessor, uninstall and delete babel-jest and set the config.transform option to your preprocessor.