mapbox / mapbox/mock-aws-sdk-js
Feature request: the ability to restore all services at once.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files or tests. Start by tracing how services are stubbed and how each service exposes restore(); define the behavior of a single AWS.restore() call, then verify that it restores every service stubbed during a test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, javascript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100