Skip to content

atecarlos/webpack-babel-jest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

webpack-babel-jest

Jest plugin for working with Webpack and Babel

It leverages Babel-Jest, and ignores any css, scss, or less file during test execution.

Webpack Babel jest plugin

Usage

Make the following changes to package.json:

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

And run:

$ npm install

And you're good to go!

About

Jest plugin for working with Webpack and Babel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published