jest-slack-reporter

Send custom Slack messages as a Jest test results processor.

MIT License

Downloads
3.7K
Stars
4

Jest JSON Reporter

Jest reporter that notifies a slack channel via Incoming Webhook integration

Set up

  1. Set up a Slack Incoming Webhook integration
  2. Add the Webhook URL to package.json under jestSlackReporter
"jestSlackReporter": {
  "webhookUrl": "https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXX"
},
  1. Set jest-slack-reporter as the jest testResultsProcessor
...
"jest": {
  "testResultsProcessor": "./node_modules/jest-slack-reporter"
},
...