I was curious how everyone mocks with prisma clien...
# orm-help
r
I was curious how everyone mocks with prisma client? We have a graphql yoga serve in front of prisma that we use to add authorisation and integrate with external Apis. I made a utility that allows you to test prisma calls like this:
h
I do some testing in my personal project. Right now things are bit messy as prisma client returns everything as a promise. Here is how I am doing testing right now: https://github.com/javascript-af/javascript-af/blob/master/packages/backend/tests/repo.test.ts