# jestification

> Preprocessor for Jest

Latest version **0.0.1** (published 2015-11-09) · 0 weekly downloads

## Install

```sh
npm install jestification
pnpm add jestification
yarn add jestification
bun add jestification
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-11-09 |
| First published | 2015-11-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | sandersky |

## Links

- npm: https://www.npmjs.com/package/jestification
- npm.io page: https://npm.io/package/jestification

## Dependencies (6)

- [jest-cli](https://npm.io/package/jest-cli.md) ^0.7.1
- [node-sass](https://npm.io/package/node-sass.md) ^3.4.1
- [babel-core](https://npm.io/package/babel-core.md) ^6.1.2
- [typescript](https://npm.io/package/typescript.md) ^1.6.2
- [babel-preset-react](https://npm.io/package/babel-preset-react.md) ^6.1.2
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.1.2

## Recent versions

- 0.0.1 (latest) — 2015-11-09

## README

# jestification
Preprocessor for Jest

## Installation

1. Install **jestification** and **tsd**

  ```bash
  npm install --save-dev jestification tsd
  ```

2. Install the typings for **jest**

  ```bash
  ./node_modules/.bin/tsd install --save jest
  ```

3. Add the following **jest** configuration to your *package.json*

  ```json
  "jest": {
    "collectCoverage": true,
    "scriptPreprocessor": "<rootDir>/node_modules/jestification/preprocessor.js",
    "testDirectoryName": "tests",
    "testFileExtensions": [
      "js",
      "jsx",
      "ts",
      "tsx"
    ],
    "unmockedModulePathPatterns": [
      "<rootDir>/node_modules/react",
      "<rootDir>/node_modules/react-dom",
      "<rootDir>/node_modules/react-addons-test-utils",
      "<rootDir>/node_modules/fbjs"
    ]
  }
  ```

4. Make sure your scripts in *package.json* include

  ```json
  "scripts": {
    "postinstall": "tsd install",
    "test": "jest"
  }
  ```

## Usage

Running tests is as simple as running the following command

```
npm test
```

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