Fork me on GitHub
#graphql
<
2017-11-24
>
admay16:11:18

Anyone here spec’ing their Lacinia services?

guy16:11:10

We’re speccing the resolvers

guy16:11:42

we’re using lacinia as a lib, not with pedestal

admay16:11:52

What are you specing in the resolvers? I’m guessing args and the output? Maybe the value for nested resolvers. I’m looking for some inspiration to get me started with spec in a service I’m working on

hlship19:11:17

I tend to keep the logic in the resolvers minimally, but may spec the functions called from the resolvers.

admay19:11:41

For all of my pure functions, I have specs written, but there aren’t too many of them. The database functions are all generated by HugSQL, so that’s also fine. I’m still trying to decide if I’m trying to write these specs for the sake of using spec or if they’re actually important to the code but I’m struggling to find any real purpose beyond my unit-testable functions (as opposed to integration testable)