💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
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
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
code for above error: describe('Should create a new user', async () => { prismaMock.user.create.mockResolvedValue(userStub()); });