Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Removed the react-native test. #1451

Conversation

excitement-engineer
Copy link
Contributor

This PR removes the only react-native test in the repo. I don’t really see the value of including this test in the repo, in addition it adds complexity with the jest configurations and adds some other devDependencies which can now be removed.

@excitement-engineer
Copy link
Contributor Author

Note, this is WIP. I am completing this as soon as I find some more time.

@excitement-engineer
Copy link
Contributor Author

excitement-engineer commented Dec 27, 2017

I can confirm that the test will refetch active ObservableQuerys when resetting the client store in ObservableQuery.test.tsx is also broken on master. Because the test was implemented incorrectly (i.e. done was not used to stop the test`) it passed even though it is wrong.

What should we do with this test? It seems that this test has nothing to do with react-apollo but more how apollo-client works.

@excitement-engineer
Copy link
Contributor Author

cc @rosskevin @jbaxleyiii

@rosskevin
Copy link
Contributor

@excitement-engineer can you rebase - I'd like to get this one merged.

const globalAny: any = global;

globalAny.requestAnimationFrame = callback => {
setTimeout(callback, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the long way to type it, you could just do (global as any).requestAnimationFrame

@excitement-engineer
Copy link
Contributor Author

It seems like the ci is not starting, maybe travis is down. The ci will not pass because of the broken test. Given that it seems to be testing something internal in apollo-client. Perhaps we should simply delete the test

@rosskevin
Copy link
Contributor

If you resolve conflicts and push a change, it will run.

@excitement-engineer excitement-engineer merged commit 1c4ff31 into apollographql:master Dec 28, 2017
@excitement-engineer excitement-engineer deleted the removed-react-native-test branch December 28, 2017 10:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants