0.1.0 • Published 8 years ago

babelify-jest v0.1.0

Weekly downloads
5
License
-
Repository
github
Last release
8 years ago

babelify-jest

Babel jest plugin which handles babelify modules gently.

Usage

Make the following changes to package.json:

{
  "devDependencies": {
    "babel-jest": "*",
    "jest-cli": "*"
  },
  "scripts": {
    "test": "jest"
  },
  "jest": {
    "scriptPreprocessor": "<rootDir>/node_modules/babelify-jest",
    "testFileExtensions": ["es6", "js"],
    "moduleFileExtensions": ["js", "json", "es6"]
  }
}

And run:

$ npm install

And you're good to go!