@santima10/jest-chat-reporter
TypeScript icon, indicating that this package has built-in type declarations

0.4.0Β β€’Β PublicΒ β€’Β Published

πŸƒ @santima10/jest-chat-reporter node Publish

⚠️⚠️ This package is still under development ⚠️⚠️

A jest reporter for chats like: Twitch, Discord, etc.

πŸ›  Configuration

🟣 Twitch

  1. Install the package in your project with your favorite package manager.
  2. In your jest.config.js file:
{
  //...
  reporters: [
      'default',
      [
        '@santima10/jest-chat-reporter',
        {
          channels: [], // an array with the twitch channels names the report is going to send messages
          username: '', // an string with the username for the twitch chat
          password: '', // an string with the oauth2 token for the twitch chat
          messagesOnWatchMode: false, // report or not test results to twitch in watch mode (default false)
          onlyCI: false // report or not test results to twitch only on CI environments (default false)
          useAnnounce: false // uses the /announce command in the Twitch Chat (default false) (needs moderator role)
        },
      ],
    ],
  //...
}

✨ Inspiration

πŸ‘€ How has this project been built?

Great question, we have a playlist with all the videos of how the project was build (in spanish)

πŸ› Known issues

Sometimes jest cannot finish the process correctly (more info in the issue), until we solve the problem you can use the flag --forceExit.

Package Sidebar

Install

npm i @santima10/jest-chat-reporter

Weekly Downloads

12

Version

0.4.0

License

CC-BY-4.0

Unpacked Size

219 kB

Total Files

33

Last publish

Collaborators

  • santima10