You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I just encountered a similar issue as I am more accustomed to using raw Sinon stubs. I will try to submit a pull request with a sandbox option parameter that allows us to generate the mocks with a single Sinon sandbox. That will allow for simpler mock cleanup.
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.The text was updated successfully, but these errors were encountered: