Tag: prisma2
-
Remove all items in table with Prisma2 and Jest
2 I would like to know how can I remove all items in table with Prisma2 and Jest ? I read the CRUD documentation and I try with this : user.test.js …. import { PrismaClient } from "@prisma/client" beforeEach(async () => { const prisma = new PrismaClient() await prisma.user.deleteMany({}) }) … But I have an…