UNPKG

@kazion/create-app

Version:

A cli tool to help you get started with graphql and rest api's with typescript

10 lines (7 loc) 238 B
import { PrismaClient } from "@prisma/client"; import { beforeEach } from "vitest"; import { mockDeep, mockReset } from "vitest-mock-extended"; beforeEach(() => { mockReset(prisma); }); export const prisma = mockDeep<PrismaClient>();