# jest-json-slack

> Your jest json slack integration

Latest version **1.1.4** (published 2022-10-10) · ISC license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2022-10-10 |
| First published | 2022-10-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 19.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | nhilmi21 |
| Keywords | jest, slack, plugin, test, reporter |

## Links

- npm: https://www.npmjs.com/package/jest-json-slack
- Repository: https://github.com/naufalhilmi21/jest-slack-reporter
- Homepage: https://github.com/naufalhilmi21/jest-slack-reporter#readme
- Issues: https://github.com/naufalhilmi21/jest-slack-reporter/issues
- npm.io page: https://npm.io/package/jest-json-slack

## Dependencies (2)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [@slack/webhook](https://npm.io/package/@slack/webhook.md) ^6.1.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2022-10-10
- 1.1.3 — 2022-10-10
- 1.1.2 — 2022-10-09
- 1.1.1 — 2022-10-09
- 1.1.0 — 2022-10-09
- 1.0.5 — 2022-10-09
- 1.0.4 — 2022-10-09
- 1.0.3 — 2022-10-09
- 1.0.2 — 2022-10-09
- 1.0.1 — 2022-10-09
- 1.0.0 — 2022-10-09

## README

# Jest Json Slack Webhook

Integrate your Jest report .json to your Slack webhook.

## Installation
To install, use npm:

```
npm install jest-json-slack
```

## Usage

```
const sendToSlack = require(jest-json-slack)

const webhookUrl = 'https://yourwebhookurl.com'
const reportLocation = './test-report.json'

(async () => {
  await sendToSlack.postMessage(reportLocation, webhookUrl)
  ...
})();

```

**Use custom message**

```
(async () => {
  await sendToSlack.postMessage(reportLocation, webhookUrl, {
    successMessage: 'Wohoo all the test passed',
    failedMessage: 'So sad there are tests have failed'
  })
  ...
})();
```

![Sample Screenshot](assets/sample_message.png)

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