18 lines
382 B
TypeScript
18 lines
382 B
TypeScript
import { beforeEach, vi } from "vitest";
|
|
import { mockDeep, mockReset } from "vitest-mock-extended";
|
|
|
|
import type { PrismaClient } from "@calcom/prisma";
|
|
|
|
vi.mock("@calcom/prisma", () => ({
|
|
default: prisma,
|
|
availabilityUserSelect: vi.fn(),
|
|
userSelect: vi.fn(),
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
mockReset(prisma);
|
|
});
|
|
|
|
const prisma = mockDeep<PrismaClient>();
|
|
export default prisma;
|