Join Slack
Powered by
anyone has a good resource on how to test (prisma ...
# orm-help
k
kratam
09/13/2018, 3:59 PM
anyone has a good resource on how to test (prisma || graphql) resolvers? I remember seeing an example repo but couldn't find it anymore.
d
divyendu
09/13/2018, 4:02 PM
how about this?
https://medium.com/entria/testing-a-graphql-server-using-jest-4e00d0e4980e
divyendu
09/13/2018, 4:02 PM
Agnostic of Prisma / GraphQL server
k
kratam
09/13/2018, 4:03 PM
Found it, but I remember seeing a prisma specific repo (I think it was in the official "examples" folder) which mocked
ctx.db
as well
d
divyendu
09/13/2018, 4:04 PM
Not that I am aware of anything from the top of my head.. will share after looking into it
k
kratam
09/13/2018, 4:04 PM
Maybe
https://github.com/prisma/prisma/tree/master/examples/resolver-unit-tests
?
kratam
09/13/2018, 4:05 PM
(it's 404 now)
d
divyendu
09/13/2018, 4:07 PM
Noted, I will see if I can find that part and revert 👍
3
Views
Open in Slack
Previous
Next