mock-aws-sdk-js
mock-aws-sdk-js copied to clipboard
Feature request: the ability to restore all services at once.
First of all thanks for this, it's been really handy.
I expect my tests to be independent from each other, and also to not need to cleanup after themselves. Given this, I'd like to call a single AWS.restore()
(or similar) after each test runs.
Would you be interested in a PR with such a function?
Any suggestions on how you'd like to see it work? I was thinking a list of services could be maintained when stubbing, then it'd be easy enough to iterate through these calling .restore()
, but I'm happy to defer to your judgment.