Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

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

Closed
13shubham opened this issue Sep 14, 2021 · 0 comments

Comments

@13shubham
Copy link

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());
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant