Hey! Frontend dev just starting out using prisma a...
# orm-help
w
Hey! Frontend dev just starting out using prisma and GraphQL-yoga to build a backend. I have two questions I have been trying to get answers to and haven’t had any luck. 1. How do I write unit tests to test my API 2. Do i have to deploy both prisma service and graphql-yoga server or is there an all in one solution?
m
@Will King 1. check out this forum post: http://www.prisma.io/forum/t/test-graphcool-framework-resolvers/2172/5 2. You have to deploy both prisma and a graphql-yoga server. You can pay Prisma to host your service or you can run it in docker. I use Apex Up to host my graphql-yoga server but you could use docker.
w
Thanks for the reply!