Join Slack
Communities
Powered by
I've got a decently large codebase at this point, ...
# prisma-whats-new
e
eruby
10/15/2017, 8:58 PM
I've got a decently large codebase at this point, and want to start wrapping it in tests before it gets larger, but can't find any reference for how to got about mocking the backend
n
nilan
10/15/2017, 9:01 PM
not a 100% fit, but maybe a start:
https://www.graph.cool/forum/t/testing-with-graphql-request/537?u=nilan
nilan
10/15/2017, 9:01 PM
which GraphQL Client are you using?
e
eruby
10/15/2017, 9:01 PM
apollo
eruby
10/15/2017, 9:02 PM
I know they have graphql tools, but that doesn't really address how to point the front-end at the fake "server"
n
nilan
10/15/2017, 9:04 PM
I can imagine you could modify the network interface to return mock data; but there's a lot of movement there at the moment with Apollo Link
e
eruby
10/15/2017, 9:04 PM
I'm wondering if I might be best off just waiting until something is settled as more of a standard
eruby
10/15/2017, 9:05 PM
That's the reason I still haven't put any subscriptions into my codebase yet
2
Views
Open in Slack
Previous
Next