Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

simplify analytics tests

Steven Tey6e50ea7b10d6
diff --git a/apps/web/tests/analytics/response.test.ts b/apps/web/tests/analytics/index.ts
similarity index 93%
rename from apps/web/tests/analytics/response.test.ts
rename to apps/web/tests/analytics/index.ts
index ce6bc3e618..8d477a38d5 100644
--- a/apps/web/tests/analytics/response.test.ts
+++ b/apps/web/tests/analytics/index.ts
@@ -4,8 +4,12 @@ import { analyticsResponse } from "@/lib/zod/schemas/analytics-response";
import { describe, expect, test } from "vitest";
import { env } from "../utils/env";
import { IntegrationHarness } from "../utils/integration";
-import { filter } from "./utils";
+const filter = {
+ domain: "dub.sh",
+ key: "checkly-check",
+ interval: "30d",
+};
describe
.runIf(env.CI)
.sequential("GET /analytics?event=composite", async () => {
diff --git a/apps/web/tests/analytics/utils.ts b/apps/web/tests/analytics/utils.ts
deleted file mode 100644
index 7ce41cb737..0000000000
--- a/apps/web/tests/analytics/utils.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export const filter = {
- domain: "dub.sh",
- key: "checkly-check",
- interval: "30d",
-};