adamsoffer / next-apollo

React higher-order component for integrating Apollo Client with Next.js
MIT License
482 stars 64 forks source link

Question: Testing with next-apollo #94

Open itstheandre opened 3 years ago

itstheandre commented 3 years ago

Hey there!

Amazing lib, really: great great job! 👏

I just have a question on how to write some tests with something like this ,to be honest I have no idea on how to eventually write tests on the pages. would you do this via integration / e2e tests instead?

I know I would do tests of the page just by passing the props and wrapping the apolli client maybe?

But I would have to export the page and then export defaulting the wrapped page?

Just curious.

Thank you!