# jest-json-result

> Deal with jest results and only output statistics and error informatio. Strip ANSI strings

Latest version **1.0.0** (published 2022-03-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install jest-json-result
pnpm add jest-json-result
yarn add jest-json-result
bun add jest-json-result
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-03-25 |
| First published | 2022-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zu1662 |
| Maintainers | huazite |

## Links

- npm: https://www.npmjs.com/package/jest-json-result
- Repository: https://github.com/zu1662/jest-json-result
- Issues: https://github.com/zu1662/jest-json-result/issues
- npm.io page: https://npm.io/package/jest-json-result

## Dependencies (1)

- [read-pkg](https://npm.io/package/read-pkg.md) ^2.0.0

## Recent versions

- 1.0.0 (latest) — 2022-03-25

## README

# Jest JSON Result

JSON test results processor for Jest.

Deal with jest results and only output statistics and error information。And strip ANSI strings.

## Setup

```
npm install --save-dev jest-json-result
```

Then add to Jest config in the package.json

```
...
"jest": {
  "testResultsProcessor": "./node_modules/jest-json-result"
},
...
```

## Configure

### output file name

By default, output file goes to test-results.json. You can configure it by adding a outputFile field under jestJsonReporter in your package.json file:

```
"jestJsonResult": {
  "outputFile": "tests/results.json"
},
```

> Inspire by Jest JSON Reporter. Many Thanks.

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