Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.04 KB

README.md

File metadata and controls

43 lines (35 loc) · 1.04 KB

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": "[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