Closed capaj closed 6 years ago
Thanks for this PR! I've added my code review :)
@capaj I've played a bit with it and actually it could be solved in much simpler way: I've created PR: https://github.com/prismake/typegql/pull/37- it seems to solve both #28 and #32 (check added test cases) too.
@pie6k this only fixes the #32, not the #28 or am I missing something?
@pie6k also it doesn't fix the context-in the test you're defining the property on the prototype. We want the instance as the context, not the prototype.
Could you show me code of some failing test for that?
About #28 - https://github.com/prismake/typegql/pull/38 fixes that. Again it's way simpler than here because it doesnt include getters workaround there
@capaj - I've updated context test to use both prototype and instance context. It's still passing. Let me know if I've missed something you mean :)
@pie6k yeah seems to be working as expected. Good that it doesn't have to do those costly Object.getOwnPropertyDescriptor
calls. :+1:
Codecov Report
100% <ø> (ø)
92% <100%> (+1.09%)
90.62% <100%> (ø)
79.16% <100%> (+0.9%)
91.76% <100%> (+0.73%)
Continue to review full report at Codecov.