Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

send smoke signals to slack from your jest test suite

License

Notifications You must be signed in to change notification settings

grahamplata/jest-smoke-signal

Repository files navigation

Jest Smoke Signal

A Jest reporter that shares it's results with a slack channel via webhooks

Highlights

Install

Following GitHub's Guide for npm packages hosted here

npm install --save-dev github:grahamplata/jest-smoke-signal

Usage

  • 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