Skip sending emails in E2E

pull/2553/head
zomars 2022-05-16 09:49:17 -06:00
parent 84f19bb4df
commit 3c37c2e774
1 changed files with 1 additions and 0 deletions

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)