Skip sending emails in E2E
parent
84f19bb4df
commit
3c37c2e774
|
@ -10,6 +10,7 @@ export default class BaseEmail {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
public sendEmail() {
|
public sendEmail() {
|
||||||
|
if (process.env.NEXT_PUBLIC_IS_E2E) return new Promise((r) => r("Skipped sendEmail for E2E"));
|
||||||
new Promise((resolve, reject) =>
|
new Promise((resolve, reject) =>
|
||||||
nodemailer
|
nodemailer
|
||||||
.createTransport(this.getMailerOptions().transport)
|
.createTransport(this.getMailerOptions().transport)
|
||||||
|
|
Loading…
Reference in New Issue