prisma / prisma1

💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
https://v1.prisma.io/docs/
Apache License 2.0
16.54k stars 862 forks source link

Circular dependency while mocking the Prisma client using both approach singelton and context #5168

Closed 13shubham closed 3 years ago

13shubham commented 3 years ago

Please post usage questions or broader discussions in the Forum.

---Circular dependency while mocking the Prisma client using both approach singelton and context

For bug reports, please fill out the bug report issue template image

code for above error: describe('Should create a new user', async () => { prismaMock.user.create.mockResolvedValue(userStub()); });