Mario Reporter for Jest, based on Mocha's version
npm install --save-dev jest-mario-reporter
or
yarn add -D jest-mario-reporter
To use this reporter you will need to have an Jest test environment set up.
In your package.json
add new reporter:
"jest": {
"bail": false,
"reporters": ["default", ["<rootDir>/node_modules/jest-mario-reporter", {} ]]
}
npm run jest
or
yarn jest
When all tests pass you will hear Mario music ;) On failed tests you will see ASCII code + hear sound effect from Mario.
You need "mplayer" installed on your system
Tip: Copy mplayer.exe
into folder with package.json