The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Mock server-only in the getReportingPeriod test
Rafid1a17fde6b29
diff --git a/apps/web/tests/partners/get-reporting-period.test.ts b/apps/web/tests/partners/get-reporting-period.test.tsindex 576dc610b7..a6d5dc9383 100644--- a/apps/web/tests/partners/get-reporting-period.test.ts+++ b/apps/web/tests/partners/get-reporting-period.test.ts@@ -1,5 +1,7 @@import { getReportingPeriod } from "@/lib/jobs/handlers/send-partner-program-summary-job";-import { describe, expect, it } from "vitest";+import { describe, expect, it, vi } from "vitest";++vi.mock("server-only", () => ({}));describe("getReportingPeriod", () => {it("returns UTC month bounds for a mid-year month", () => {