297a965508
* wip commit * Finished new algorithm for fetching the least recently booked user * ROUND_ROBIN fix * Removed redundant import * Prisma dependency turned getLuckyUser into a server-only function * DRY avatars * Properly passThrough * name can be undefined. * Remove debug artefact
16 lines
384 B
TypeScript
16 lines
384 B
TypeScript
import { PrismaClient } from "@prisma/client";
|
|
import { mockDeep, mockReset, DeepMockProxy } from "jest-mock-extended";
|
|
|
|
import prisma from "@calcom/prisma";
|
|
|
|
jest.mock("@calcom/prisma", () => ({
|
|
__esModule: true,
|
|
default: mockDeep<PrismaClient>(),
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
mockReset(prismaMock);
|
|
});
|
|
|
|
export const prismaMock = prisma as unknown as DeepMockProxy<PrismaClient>;
|