mock-aws-sdk-js icon indicating copy to clipboard operation
mock-aws-sdk-js copied to clipboard

Feature request: the ability to restore all services at once.

Open Calrion opened this issue 7 years ago • 1 comments

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.

Calrion avatar May 20 '17 09:05 Calrion