differencify-zerdos-jest-reporter
Version:
A Jest reporter for Differencify
70 lines (47 loc) • 1.01 kB
Markdown
# differencify-jest-reporter
A Jest reporter for [Differencify](https://github.com/NimaSoroush/differencify)
## Installation
Using npm:
```bash
$ npm i -D differencify-jest-reporter
```
## Usage
Jest CLI:
```bash
jest --reporters differencify-jest-reporter
```
Jest Config:
```json
{
"reporters": ["differencify-jest-reporter"]
}
```
## Options
### debug: boolean
Logs the output to consol
### failedOnly: boolean
Only include failed tests in report
### reportPath: string
Report directory relative to root of project
### reportTypes: object
File name for generating a html report and json
```json
reporters: [
'default', // keep the default reporter
[
'differencify-jest-reporter',
{
debug: true,
failedOnly: false,
reportPath: 'differencify_reports',
reportTypes: {
html: 'index.html',
json: 'index.json',
},
},
],
],
```
Note: Options are available only via jest.config file
## Licence
MIT