fix(test): resolve petsExtendedFields vi.mock hoisting + invalid UUIDs (GRO-1390) #32

Merged
Lint Roller merged 1 commits from fix/gro-1390-pets-test-mock-hoisting into dev 2026-05-21 07:02:59 +00:00
@@ -21,8 +21,8 @@ const MANAGER: StaffRow = {
// ─── Mutable mock state ─────────────────────────────────────────────────────── // ─── Mutable mock state ───────────────────────────────────────────────────────
const CLIENT_ID = "client-uuid-extended"; const CLIENT_ID = "a0000000-0000-4000-8000-000000000001";
const PET_ID = "pet-uuid-extended"; const PET_ID = "b0000000-0000-4000-8000-000000000002";
let petRows: Record<string, unknown>[] = []; let petRows: Record<string, unknown>[] = [];
let appointmentRows: Record<string, unknown>[] = []; let appointmentRows: Record<string, unknown>[] = [];
@@ -163,10 +163,10 @@ vi.mock("../db", () => {
}), }),
pets, pets,
appointments, appointments,
and, and: (...conds: unknown[]) => conds,
eq, eq: (col: unknown, val: unknown) => ({ col, val }),
exists, exists: (q: unknown) => q,
or, or: (...conds: unknown[]) => conds,
}; };
}); });