Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup optimistic update tests #3712

Closed
joshribakoff opened this issue Jul 20, 2018 · 2 comments
Closed

Cleanup optimistic update tests #3712

joshribakoff opened this issue Jul 20, 2018 · 2 comments

Comments

@joshribakoff
Copy link
Contributor

I'm a new potential contributor. Id like to work on this issue

#3691

I notice these tests are quite involved and I feel like I should simplify them before adding more test code. I would flatten these with async await and extract some test helpers to cut down on boilerplate. From there it would be easier to add more tests and easier to maintain going forward.

https://github.com/apollographql/apollo-client/blob/master/packages/apollo-client/src/__tests__/optimistic.ts

Please let me know if this sounds good and Ill get started on cleaning up these tests. Then once that is done I could look into adding new tests to expose the race conditions with the concurrent updates clobbering state.

@hwillson
Copy link
Member

Hi @joshribakoff - new contributions are always welcome! We're definitely open to code changes that help make the codebase more manageable. Cleaning up the tests sounds great. Thanks!

@hwillson
Copy link
Member

hwillson commented Jul 9, 2019

We'll close this for now due to low activity, but if anyone is interested in working on this, definitely let us know. Thanks!

@hwillson hwillson closed this as completed Jul 9, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants