How to mock the SDK? #342
-
Hi! 👋 Is there a way to mock this SDK by providing expected requests/responses for unit tests, like you can do with the AWS SDK? For context, I'm building an integration with Google Workflows and would like to mock the requests/reponses to a certain extent while developping locally. I know that I could alternatively write a trait/struct on top of the SDK, but that would defeat some of the purposes of my tests. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There was a way of doing that using |
Beta Was this translation helpful? Give feedback.
There was a way of doing that using
yup-hyper-mock
, but I doubt it still works after the last breaking update the google crates received. Maybe the mentioned crate can serve as a basis for exploring your own solution to this, maybe it even still works or is just one PR away from getting there.