@mnatanbrito/jest-meme-reporter
v1.0.1
Published
Turn your test results into memes! 😋
Downloads
13
Readme
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
😋
Licence
MIT