Scheduling infrastructure for absolutely everyone.
Skip sending emails in E2E
zomars3c37c2e77475
diff --git a/apps/web/lib/emails/templates/_base-email.ts b/apps/web/lib/emails/templates/_base-email.tsindex 2e73025d035..3cd5b44eea2 100644--- a/apps/web/lib/emails/templates/_base-email.ts+++ b/apps/web/lib/emails/templates/_base-email.ts@@ -10,6 +10,7 @@ export default class BaseEmail {return {};}public sendEmail() {+ if (process.env.NEXT_PUBLIC_IS_E2E) return new Promise((r) => r("Skipped sendEmail for E2E"));new Promise((resolve, reject) =>nodemailer.createTransport(this.getMailerOptions().transport)