Open charlypoly opened 4 years ago
Hey @wittydeveloper,
Thanks, I really appreciate this feedback.
I think we are pretty much in the same page, in fact my first thought was actually to make it work specifically for Apollo Client setups, and I'd like to focus on this use-case first and use this as a baseline going forward.
Cheers
@dfernandeza
I'll see if we can end up with a nicer API than <MimicProvider><MyComponent /></MimicProvider>
I'll be working on a first draft of the main functionality (the one described on the test file) this week.
@dfernandeza 👋
Is
graphql-mimic
client agnostic or should we provide "adapter" for Apollo first with a clear interface - if possible - for people wanting to use it with other clients?I am asking because I would see myself wanting to mock existing query in my application components that rely a lot on Apollo's
useQuery()
, etcExample usage with Apollo (using your
README
example):myComponent.ts
myComponent.spec.ts