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

AWS JavaScript SDK v3 mocks for easy unit testing. 🖋️ Typed 🔬 Tested 📄 Documented 🛠️ Maintained

Results 50 aws-sdk-client-mock issues
Sort by recently updated
recently updated
newest added

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...

enhancement

See https://github.com/aws/aws-sdk-js-v3/issues/2215 and https://github.com/aws/aws-sdk-js-v3/issues/1156#issuecomment-814132074

enhancement

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....

enhancement

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. -----...

enhancement

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...

enhancement

**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...

bug

**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,...

bug

**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...

bug

**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**...

bug

**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...

bug