1.1.4 • Published 3 years ago

jest-json-slack v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago