A Jest reporter that shares it's results with a slack channel via webhooks
- Report your jest results as Slack Notifications Slack Web Hooks
Following GitHub's Guide for npm packages hosted here
npm install --save-dev github:grahamplata/jest-smoke-signal
- You will need to create an incoming webhook for Slack
- Add reporter to the jest.config.ts / jest.config.js
- Set Enviroment Variables
// jest.config.ts / jest.config.js
{
"reporters": ["default", "jest-smoke-signal"]
}
# .env
SLACK_BLOCK_TITLE=Tests
SLACK_CHANNEL=#my-test-channel
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/XXXXXXXXXXXXX/YYYYYYYYYYYY
# shell
jest feature.test.js