1.1.4 • Published 2 years ago

jest-json-slack v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago