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

mocks as a readonly array #70

Merged
merged 1 commit into from
Apr 15, 2022
Merged

mocks as a readonly array #70

merged 1 commit into from
Apr 15, 2022

Conversation

saiichihashimoto
Copy link
Contributor

In MockedProvider in @apollo/client/testing, the array is readonly which creates an error when matching the types.

image

image

This is a quick bug fix; the true solution involves using MockedProvider types from @apollo/client/testing directly. The intended use case of this package is to drop in MockedProvider, so the types should be one-to-one.

In `MockedProvider` in `@apollo/client/testing`, the array is readonly which creates an error when matching the types.
@saiichihashimoto
Copy link
Contributor Author

saiichihashimoto commented Feb 16, 2022

@lifeiscontent let me know if there's a specific procedure for changes

@saiichihashimoto
Copy link
Contributor Author

Should I be doing anything @lifeiscontent? This looks good to me.

@saiichihashimoto
Copy link
Contributor Author

@lifeiscontent anything I can do to get this moving? Happy to have the PR rejected or to know I should be doing more.

@lifeiscontent lifeiscontent merged commit 6229ad2 into lifeiscontent:master Apr 15, 2022
@lifeiscontent
Copy link
Owner

@saiichihashimoto sorry, I've been a bit busy lately and haven't had a ton of time for open source. Thanks for the contribution!

@lifeiscontent
Copy link
Owner

@saiichihashimoto actually, if you have some time on your hands, I could really use some help. I have been planning to migrate to the same release process as https://github.com/lifeiscontent/storybook-addon-next-router if I gave you an outline would you be willing to help with it so I can publish a new version for you to use?

@saiichihashimoto
Copy link
Contributor Author

Honestly, I don't have the time. We're on a tight release schedule and I don't have the time to allocate to this, I was making a quick contribution as I included a @ts-expect-error in our own project. Sorry, and good luck!

@lifeiscontent
Copy link
Owner

@saiichihashimoto released your changes in latest version. Thanks for your contribution!

@saiichihashimoto saiichihashimoto deleted the patch-1 branch June 27, 2022 16:57
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.

2 participants