# @konecty/jest-doc-reporter

> ![Konecty](./docs/logo-konecty.png)

Latest version **1.1.0** (published 2022-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @konecty/jest-doc-reporter
pnpm add @konecty/jest-doc-reporter
yarn add @konecty/jest-doc-reporter
bun add @konecty/jest-doc-reporter
```

## 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.1.0 |
| Published | 2022-05-20 |
| First published | 2022-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=16.0.0 |
| Dependencies | 6 |
| Unpacked size | 78.3 KB |
| Known vulnerabilities | 0 (+8 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Konecty Informática Ltda |
| Maintainers | konecty_dev, silveirado, 7sete7 |

## Links

- npm: https://www.npmjs.com/package/@konecty/jest-doc-reporter
- Repository: https://github.com/Konecty/jest-doc-reporter
- Homepage: https://github.com/Konecty/jest-doc-reporter#readme
- Issues: https://github.com/Konecty/jest-doc-reporter/issues
- npm.io page: https://npm.io/package/@konecty/jest-doc-reporter

## Dependencies (6)

- [pino](https://npm.io/package/pino.md) ^7.10.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [fastify](https://npm.io/package/fastify.md) ^3.28.0
- [pino-pretty](https://npm.io/package/pino-pretty.md) ^7.6.1
- [fastify-plugin](https://npm.io/package/fastify-plugin.md) ^3.0.1

## Recent versions

- 1.1.0 (latest) — 2022-05-20
- 1.0.0 — 2022-05-17

## README

![Konecty](./docs/logo-konecty.png)

![npm shield](https://img.shields.io/npm/v/@konecty/jest-doc-reporter?style=flat-square)

# Jest Docs Reporter

[Jest](https://github.com/facebook/jest) test results processor for generate a list of suites and test cases

## Installation

```shell
$ yarn add --dev @konecty/jest-doc-reporter
```

## Usage

Configure Jest to process the test results by adding the following entry to the Jest config (jest.config.json):

```JSON
"reporters": [
	"default",
	["@konecty/jest-doc-reporter", {
		"title": "Test Report",
        "outputPath": "./docs",
		"sort": "asc",
	}]
]
```

As you run Jest from within the terminal, a file called _index.md_ will be created within your outputPath or root folder containing information about your tests.

### Node Compatibility

![npm shield](https://img.shields.io/node/v/@konecty/jest-doc-reporter?style=flat-square)

This plugin is compatible with Node version `^16.0.0`

## Configuration

Please note that all configuration properties are optional.

| Property          | Type                | Description                                                                           | Default     |
| ----------------- | ------------------- | ------------------------------------------------------------------------------------- | ----------- |
| `title`           | `STRING`            | The title of the document. This string will also be outputted on the top of the page. | `"Docs"`    |
| `logo`            | `STRING`            | Path to a logo that will be included in the header of the report                      | `null`      |
| `outputPath`      | `STRING`            | The path to where the plugin will output the HTML report.                             | `"./"`      |
| `sort`            | `STRING`            | Sorts the test results alphabeticaly using `"asc"`, `"desc"` or `"none"`              | `"none"`    |
| `filterRegex`     | `STRING` or `REGEX` | Remove test result that matches the pattern                                           | `undefined` |
| `oneFilePerSuite` | `BOOLEAN`           | Split results one file per suite                                                      | `false`     |

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