The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
simplify test
Steven Tey0516267f86b4
diff --git a/apps/web/lib/zod/schemas/customers.ts b/apps/web/lib/zod/schemas/customers.tsindex fa46ebff53..0f26582498 100644--- a/apps/web/lib/zod/schemas/customers.ts+++ b/apps/web/lib/zod/schemas/customers.ts@@ -35,8 +35,8 @@ export const CustomerSchema = z.object({name: z.string().describe("Name of the customer."),email: z.string().nullish().describe("Email of the customer."),avatar: z.string().nullish().describe("Avatar URL of the customer."),- createdAt: z.date().describe("The date the customer was created."),country: z.string().nullish().describe("Country of the customer."),+ createdAt: z.date().describe("The date the customer was created."),});export const CUSTOMERS_MAX_PAGE_SIZE = 100;diff --git a/apps/web/tests/customers/index.test.ts b/apps/web/tests/customers/index.test.tsindex bb2362c8b7..bc598d7e13 100644--- a/apps/web/tests/customers/index.test.ts+++ b/apps/web/tests/customers/index.test.ts@@ -1,5 +1,4 @@import { Customer } from "@/lib/types";-import { CustomerSchema } from "@/lib/zod/schemas/customers";import { afterAll, describe, expect, test } from "vitest";import { randomId } from "../utils/helpers";import { IntegrationHarness } from "../utils/integration";@@ -61,10 +60,6 @@ describe.sequential("/customers/**", async () => {expect(status).toEqual(200);expect(customers.length).toBeGreaterThanOrEqual(1);- customers.forEach((customer) => {- const result = CustomerSchema.safeParse(customer);- expect(result.success).toBe(true);- });});test("PATCH /customers/{id}", async () => {