# jest-babel-webpack-react

> A Jest plugin for optimized integration with Webpack, Babel and React

Latest version **0.1.4** (published 2016-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install jest-babel-webpack-react
pnpm add jest-babel-webpack-react
yarn add jest-babel-webpack-react
bun add jest-babel-webpack-react
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2016-03-21 |
| First published | 2016-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lars Lawoko |
| Maintainers | larslawoko |

## Links

- npm: https://www.npmjs.com/package/jest-babel-webpack-react
- Repository: https://github.com/LarsOL/jest-babel-webpack-react
- Homepage: https://github.com/LarsOL/jest-babel-webpack-react#readme
- Issues: https://github.com/LarsOL/jest-babel-webpack-react/issues
- npm.io page: https://npm.io/package/jest-babel-webpack-react

## Recent versions

- 0.1.4 (latest) — 2016-03-21
- 0.1.3 — 2016-03-18
- 0.1.2 — 2016-03-18
- 0.1.1 — 2016-03-18
- 0.1.0 — 2016-03-18

## README

# jest-babel-webpack-react
A Jest plugin for optimized integration with Webpack, Babel and React

This plugin assumes you already have a valid babel instance installed, and unlike babel-jest will use the projects .babelrc file.

It will skip files that babel can not compile, such as .less, .css, .png etc..

It will skip transforming /node_module/ files, under the assumption that they are already valid es5.

It will skip including the jsx transformer (react) on js files for a significant performance advantage.

Files not meeting any of this criteria will be transformed as per .babelrc file. 

## Installation

```sh
$ npm install jest-babel-webpack-react --save-dev
```

## Usage

Insert `jest.scriptPreprocessor` in `package.json`:

```json
{
  "jest": {
    "scriptPreprocessor": "<rootDir>/node_modules/jest-babel-webpack-react"
  }
}
```

For convenience you may want to add in `package.json`: 

```json
"scripts": {
    "test": "jest"
  }
```

Then run the tests with `npm test`

---
_Source: https://npm.io/package/jest-babel-webpack-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
