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.

fix CI environment variable

Kiran K0ec735b9e23a
diff --git a/apps/web/tests/utils/env.ts b/apps/web/tests/utils/env.ts
index 09177b2938..a0bb44d2fa 100644
--- a/apps/web/tests/utils/env.ts
+++ b/apps/web/tests/utils/env.ts
@@ -7,7 +7,10 @@ export const integrationTestEnv = z.object({
E2E_WORKSPACE_ID: z.string().min(1),
E2E_WORKSPACE_SLUG: z.string().min(1),
E2E_WORKSPACE_NAME: z.string().min(1),
- CI: z.boolean().default(false), // true if running in CI
+ CI: z.coerce
+ .string()
+ .default("false")
+ .transform((v) => v === "true"),
});
-export const env = integrationTestEnv.parse(process.env);
+export const env = integrationTestEnv.parse(process.env);
\ No newline at end of file