Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-discord-reporter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-discord-reporter

Jest reporter used to send test results with Discord.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

jest-discord-reporter

Cutomizable Jest reporter with CI integration that sends test results to Discord channel via incoming webhook.





Set up

  1. Set up a Discord incoming webhook integration.
  2. Add reporter to package.json under jest.reporters and customize your settings (if you set webhook url using process.env.JEST_DISCORD_WEBHOOK environment variable, then none of them are mandatory). If not, then you have to set it in package.json.
"jest": {
  "reporters": [
    "default",
    [
      "<rootDir>/node_modules/jest-discord-reporter",
      {
        "sendOnlyWhenFailed": true,
        "username": "jest-discord-reporter",
        "webhookUrl": "https://discordapp.com/api/webhooks/XXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
      }
    ]
  ]
}

Notes:

  • This package uses env-ci module to get some environment variables from CI services.
  • While sending the report, Environment field value is taken from process.env.CI_NETWORK, and if it's not present, it's taken from process.env.NETWORK (environment variables). This allows to set this value independently on CI services.

Keywords

FAQs

Package last updated on 05 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc