Skip sending emails in E2E

This commit is contained in:
zomars
2022-05-16 09:49:17 -06:00
parent 84f19bb4df
commit 3c37c2e774

View File

@@ -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)