-
-
Notifications
You must be signed in to change notification settings - Fork 821
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
WIP: test to show that mocking & resolving cannot be used concurrentl… #96
WIP: test to show that mocking & resolving cannot be used concurrentl… #96
Conversation
@sebastienbarre: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
@sebastienbarre Thanks, I think this is an excellent start. Now we just have to figure out how to make it do what we would expect 😬 According to the comments in the code it should already be doing that (mock.js), so the next step you could take would be to figure out why that test is failing by seeing which branch it takes for mocking the |
@helfer thanks. So here is a stab at it. The |
I think this should work! If I remember correctly how mocking is done, it shouldn't be an issue on the root value. Can your rebase this on master so I can merge it? |
@helfer done 👍 |
Perfect, thanks! |
Unfortunately, this is now broken :( Remember when I mentioned "Now I'm not sure what that big block below the we have to handle the root mutation and root query types differently comment does"? Something had to be done there too. I'll have to come with a new test and fix... |
Yes, I remember that. Unfortunately I think I forgot it and merged the PR before I took a look at that. |
Per @helfer suggestion in apollographql/apollo-server#9, submit a PR with a failing test, showing a case where mocks and resolver can't be use concurrently.
Thank you.