import { describe, expect, test } from "bun:test";
import { deployConfigWarnings } from "./check-deploy-config";
describe("deploy config warnings", () => {
test("a missing SUPPORT_EMAIL warns without failing", () => {
expect(deployConfigWarnings({ vars: { SUPPORT_EMAIL: "help@x.test" } })).toEqual([]);
expect(deployConfigWarnings({ vars: { LEGAL_CONTACT_EMAIL: "legal@x.test" } })[0]).toContain("fall back");
expect(deployConfigWarnings({ vars: {} })[0]).toContain("no support address");
});
});