Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tglink/jest-email-reporter
- Owner: tglink
- License: mit
- Created: 2019-06-07T16:32:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-23T11:50:18.000Z (about 5 years ago)
- Last Synced: 2024-07-09T20:00:32.445Z (4 months ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-jest - jest-email-reporter - mail. (Packages / Reporters)
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)