-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
Copy Symbols as well in copyOwnPropsIfNotPresent
#4505
base: master
Are you sure you want to change the base?
Copy Symbols as well in copyOwnPropsIfNotPresent
#4505
Conversation
|
@Hetch3t is attempting to deploy a commit to the The Guild Team on Vercel. A member of the Team first needs to authorize it. |
Thanks for the PR! Would you add some unit tests to prevent future regressions and changeset(using yarn changeset)? |
4946aeb
to
4be9073
Compare
We just encountered this same issue when attempting to mock the Other than needing tests, is there anything else that is blocking this fix from making it into a release? At over a year old, is this PR still valid? I see that it's listed in the project roadmap, but just wanted to give it a bump. |
@bkalbs-wm would you be able to contribute a test for this? |
@Urigo i can give it a go once I get some breathing room from this work deadline i am on. would like to help however i can. I can open up a new PR once ready. |
d34fb65
to
b8bf584
Compare
Hi!
I had issues with mocking lib - we use
ObjectId
from Mongo as an ID scalar type, so after introducing mocking to our schema it started to fail. After hefty amount of time debugging it turned out thatObjectId
is implemented in such a way that is is stored as buffer asSymbol(id)
. Function that is being used in@graphql-tools/mock
usesObject.getOwnPropertyNames
which doesn't listSymbol
s. The solution I've implemented you can see in this PR.