1.0.1 ā€¢ Published 5 years ago

@mnatanbrito/jest-meme-reporter v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

jest-meme-reporter

Turn your test results into memes! šŸ˜‹

Installation

npm install -D @mnatanbrito/jest-meme-reporter

Important Notice

This reporter is intended for fun only. Given this restriction, it will only run in development (NODE_ENV=development) environments. I advise you not to replace 'default' reporter, just add 'jest-meme-reporter' as an additional reporter.

Meme source

We use Giphy as the meme database.

Usage

In your jest config add the following entry:

{
  "reporters": [
    "default",
    [
      "<rootDir>/node_modules/@mnatanbrito/jest-meme-reporter/src/index.js", {
        "apiKey": "API_KEY"
      }
    ]
  ]
}

Options

apiKey: string

Api key generated on the Giphy dashboard.

{
  "reporters": [["jest-meme-reporter", { "apiKey": "API_KEY_HERE" }]]
}

Then simply run:

jest

Usage as testResultsProcessor

In your jest config add the following entry:

{
  "testResultsProcessor": "jest-meme-reporter"
}

Then simply run:

jest

šŸ˜‹

Jest meme reporter output

Licence

MIT