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

Expose frozen wrap(...).options on functions returned by wrap #504

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

benjamn
Copy link
Owner

@benjamn benjamn commented Mar 21, 2023

Exposing these wrapped.options should eliminate the need to mock the optimism package for Apollo Client tests, introduced by apollographql/apollo-client#8107.

@benjamn benjamn self-assigned this Mar 21, 2023
@benjamn benjamn merged commit adedc7e into main Mar 21, 2023
@benjamn benjamn deleted the wrapped.options branch March 21, 2023 21:35
benjamn added a commit that referenced this pull request Mar 21, 2023
The minor version bump is due to the refactoring changes in #503, as
well as the new `wrap(...).options` API in #504.
benjamn added a commit to apollographql/apollo-client that referenced this pull request Mar 21, 2023
Thanks to benjamn/optimism#504, we no longer
need mocking to find out the options used when wrapping functions.

This mocking was introduced in #8107, when there was no better option.
benjamn added a commit to apollographql/apollo-client that referenced this pull request Mar 21, 2023
Thanks to benjamn/optimism#504, we no longer
need mocking to find out the options used when wrapping functions.

This mocking was introduced in #8107, when there was no better option.
benjamn added a commit to apollographql/apollo-client that referenced this pull request Mar 21, 2023
Thanks to benjamn/optimism#504, we no longer
need mocking to find out the options used when wrapping functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant