cuddly-room-47340
05/27/2023, 4:08 PMjs
const { defineConfig } = require("cypress")
const nodemailer = require("nodemailer")
const mg = require("nodemailer-mailgun-transport")
require('dotenv').config()
const mailgunAuth = {
auth: {
api_key: process.env.MAILGUN_API_KEY,
domain: "mydomain.com"
}
}
const transport = nodemailer.createTransport(mg(mailgunAuth))
module.exports = defineConfig({
projectId: 'XXX',
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
require('cypress-email-results')(on, config, {
email: [
'test@example.com',
],
emailOnSuccess: false,
dry: true,
transport,
})
},
video: false,
viewportWidth: 1280,
viewportHeight: 720,
});
Any idea how to fix it?cuddly-room-47340
05/27/2023, 4:51 PM