Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tglink/jest-email-reporter

Jest test results processor for sending a report on e-mail
https://github.com/tglink/jest-email-reporter

Last synced: 3 months ago
JSON representation

Jest test results processor for sending a report on e-mail

Awesome Lists containing this project

README

        



jest-email-reporter


See jest test errors on e-mail


## Install

```sh
npm install --save-dev jest-email-reporter
# or
yarn add -D jest-email-reporter
```

## Usage

You must configure the jest config. Do not forget `from` and `to` e-mail addresses.

```javascript
module.exports = {
...
reporters: [
"default",
["jest-email-reporter", {
from: '[email protected]',
to: '[email protected]',
subject: 'Optional subject', // optional
reportIfSuccess: true, // optional, default is false; it send e-mail message if tests were successful
}]
],
...
}
```

## Result

![Result image](./src/result.png)