aboutsummaryrefslogtreecommitdiff
path: root/test/js/third_party/nodemailer/nodemailer.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/third_party/nodemailer/nodemailer.test.ts')
-rw-r--r--test/js/third_party/nodemailer/nodemailer.test.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/js/third_party/nodemailer/nodemailer.test.ts b/test/js/third_party/nodemailer/nodemailer.test.ts
index 265112608..36a229524 100644
--- a/test/js/third_party/nodemailer/nodemailer.test.ts
+++ b/test/js/third_party/nodemailer/nodemailer.test.ts
@@ -2,10 +2,14 @@ import { test, expect, describe } from "bun:test";
import { bunRun } from "harness";
import path from "path";
+const it = process.env.SMTP_SENDGRID_KEY && process.env.SMTP_SENDGRID_SENDER ? test : test.skip;
describe("nodemailer", () => {
- test("basic smtp", async () => {
+ it("basic smtp", async () => {
try {
- const info = bunRun(path.join(import.meta.dir, "process-nodemailer-fixture.js"));
+ const info = bunRun(path.join(import.meta.dir, "process-nodemailer-fixture.js"), {
+ SMTP_SENDGRID_SENDER: process.env.SMTP_SENDGRID_SENDER as string,
+ SMTP_SENDGRID_KEY: process.env.SMTP_SENDGRID_KEY as string,
+ });
expect(info.stdout).toBe("true");
expect(info.stderr || "").toBe("");
} catch (err: any) {