Mike-Gibson / mock-apollo-client

Helps unit test components which use the Apollo Client.
MIT License
117 stars 15 forks source link

fix: missingHandlerPolicy not passed to a MockLink when creating a client #60

Closed mykolavlasov closed 7 months ago

mykolavlasov commented 7 months ago

I've added missingHandlerPolicy field for the MockLink and as an option for the createMockClient in my previous PR However, it wasn't passed from to a MockLink when it was initialized inside of the createMockClient. I fixed it in this PR and added an integration test for it

mykolavlasov commented 7 months ago

I would appreciate your review @Mike-Gibson Sorry for the fuss

Mike-Gibson commented 7 months ago

Hey @mykolavlasov - thanks for fixing. Apologies that I missed this in the original PR! Great that you added an integration test for it 👍

I've published 1.3.1 which includes this fix.

mykolavlasov commented 7 months ago

Hey @mykolavlasov - thanks for fixing. Apologies that I missed this in the original PR! Great that you added an integration test for it 👍

I've published 1.3.1 which includes this fix.

Thanks a lot for the quick response and for publishing a new version, I greatly appreciate it!