Join Slack
Powered by
I was curious how everyone mocks with prisma clien...
# orm-help
r
Rory Kelly
03/19/2019, 5:26 PM
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:
Mocking_prisma.ts
h
Harshit
03/20/2019, 9:17 AM
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
3
Views
Open in Slack
Previous
Next