jest-slack-reporter-custom-message
v1.0.1
Published
Jest slack reporter with custom message
Downloads
2
Readme
Jest Slack Reporter Custom Message
Jest slack reporter that notifies a slack channel via Incoming Webhook integration, you can set your own custom message on success or failure of the test.
Set up
- Set up a Slack Incoming Webhook integration
- Add the Webhook URL to
package.json
underjestSlackReporter
"jestSlackReporter": {
"webhookUrl": "https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXX"
},
- Set
jest-slack-reporter
as the jesttestResultsProcessor
...
"jest": {
"testResultsProcessor": "./node_modules/jest-slack-reporter",
"failMessage": "Some tests have failed",
"passMessage": "All tests have passed"
},
...