aerogear / offix

GraphQL Offline Client and Server
https://offix.dev
Apache License 2.0
758 stars 45 forks source link

Migrate from mocha to ava with better test coverage #78

Closed darahayes closed 5 years ago

darahayes commented 5 years ago

We're making some really great progress with Offix, however I think some work needs to be done around testing. I'd like this issue to focus solely on unit tests. There is plenty of scope for integration tests also, but I think we can start simple and cover those in a separate issue.

There are several components in Offix that perform some complex and tricky logic. Cache operations, data structure manipulations. Let's try to collaborate and identify the areas where we will get the most value out of unit tests.

I see this initiative being tackled as lots of small PRs. Contributions in the form of PRs, and suggestions/discussion are welcome. Myself and other collaborators are here to help!

wtrocki commented 5 years ago

@darahayes This aged badly. How about we will use jest for both integration and unit tests. Unit tests now could be much easier but we still need to have integration tests focused testing due to the complexity of the flow.

darahayes commented 5 years ago

Closing in favour of https://github.com/aerogear/offix/issues/192