@mnatanbrito/jest-meme-reporter

1.0.1Β β€’Β PublicΒ β€’Β Published

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

Maintainers

Marcos Natan

Licence

MIT

Readme

Keywords

Package Sidebar

Install

npm i @mnatanbrito/jest-meme-reporter

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

2.79 MB

Total Files

9

Last publish

Collaborators

  • mnatanbrito