Skip to content

<div align=\"center\"> <img height=\"200\" src=\"./src/logo.jpg\"> <h1>jest-nodemailer-reporter</h1> <p>See jest test errors on e-mail. Nodemail version of <a href="https://github.com/tglink/jest-email-reporter">jest-email-reporter</a> by <b>Anton Karmanov</b></p> </div>

License

Notifications You must be signed in to change notification settings

ria-com/jest-nodemailer-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jest-nodemailer-reporter

jest-nodemailer-reporter

See jest test errors on e-mail. Nodemail version of jest-email-reporter by Anton Karmanov

Install

npm install --save-dev jest-nodemailer-reporter

Usage

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

module.exports = {
    ...
    reporters: [
        "default",
        ["jest-nodemailer-reporter", {
            "transporter": {
                "sendmail": true,
                "newline": 'unix',
                "path": '/usr/sbin/sendmail'
            },
            "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
        }]
    ],
    ...
}

Result

Result image

About

<div align=\"center\"> <img height=\"200\" src=\"./src/logo.jpg\"> <h1>jest-nodemailer-reporter</h1> <p>See jest test errors on e-mail. Nodemail version of <a href="https://github.com/tglink/jest-email-reporter">jest-email-reporter</a> by <b>Anton Karmanov</b></p> </div>

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published