```sh npm install --save-dev jest-email-reporter # or yarn add -D jest-email-reporter ```
npm install jest-email-reporterSee jest test errors on e-mail
``sh`
npm install --save-dev jest-email-reporteror
yarn add -D jest-email-reporter
You must configure the jest config. Do not forget from and to e-mail addresses.
`javascript``
{
reporters: [
"default",
["jest-email-reporter", {
from: 'from@example.com',
to: 'to@example.com',
subject: 'Optional subject', // optional
reportIfSuccess: true, // optional, default is false; it send e-mail message if tests were successful
}]
]
}