[Babel](https://github.com/babel/babel) [jest](https://github.com/facebook/jest) plugin which handles babelify modules gently.
npm install babelify-jestBabel jest plugin which handles babelify modules
gently.
Make the following changes to package.json:
``json``
{
"devDependencies": {
"babel-jest": "*",
"jest-cli": "*"
},
"scripts": {
"test": "jest"
},
"jest": {
"scriptPreprocessor": "
"testFileExtensions": ["es6", "js"],
"moduleFileExtensions": ["js", "json", "es6"]
}
}
And run:
$ npm install
And you're good to go!