aws-sdk-client-mock
aws-sdk-client-mock copied to clipboard
AWS JavaScript SDK v3 mocks for easy unit testing. 🖋️ Typed 🔬 Tested 📄 Documented 🛠️ Maintained
Currently, you can only pass a static object to `.resolves()`. This is okay if your requests contain different input you can match on, but if you want to pass different...
See https://github.com/aws/aws-sdk-js-v3/issues/2215 and https://github.com/aws/aws-sdk-js-v3/issues/1156#issuecomment-814132074
Mock `callsFake()` method is not typed. The `input` argument passed to the mock function should be typed with an intersection of all Client commands inputs, and similar for the output....
Currently, the `callsFake()` mock does not support throwing an error from it. The error should be returned as a Client `send()` error, in the same way as `mock.rejects()` behaves. -----...
Firstly thanks for the great repo. I'm new to a project and we're transitioning node.js services to use TS. We've had to do an ugly work around to pass the...
**Checklist** - [x] I have read [Caveats](https://github.com/m-radzikowski/aws-sdk-client-mock#caveats) documentation and didn't find a solution for this problem there. **Bug description** After upgrading to version 2 and using the separate package for...
**Checklist** - [x] I have read [Caveats](https://github.com/m-radzikowski/aws-sdk-client-mock#caveats) documentation and didn't find a solution for this problem there. **Bug description** When attempting to mock AWS Secrets Manager with the code below,...
**Checklist** I read the readme and tried to mock `AWS.CognitoIdentityServiceProvider.signUp()`. - [x] I have read [Caveats](https://github.com/m-radzikowski/aws-sdk-client-mock#caveats) documentation and didn't find a solution for this problem there. **Bug description** I have...
**Checklist** I saw the readme file and tried to mock S3 upload - [x] I have read [Caveats](https://github.com/m-radzikowski/aws-sdk-client-mock#caveats) documentation and didn't find a solution for this problem there. **Bug description**...
**Checklist** - [x] I have read [Caveats](https://github.com/m-radzikowski/aws-sdk-client-mock#caveats) documentation and didn't find a solution for this problem there. **Bug description** ``` TypeError: Cannot read properties of undefined (reading 'kind') at getTypeFromTypeNodeWorker...