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

Jest sometimes ignores the pakage.json's entry/main values. It tries to import a `.ts` path at runtime: `aws-sdk-client-mock/src/sinon.ts` I've looked at the compiled JS on NPM, and there's no obvious issue...

**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** The Jest matchers added [here](https://github.com/m-radzikowski/aws-sdk-client-mock/pull/97) still use the sinon call matching...

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** After updating this great library from 0.6.2 to 1.0.0, the...

bug
waiting for reply

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) Commits See full diff in compare...

dependencies

**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** We use this library in our tests using Typescript and Mocha...

bug
waiting for reply

**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** ```typescript import { mockClient } from 'aws-sdk-client-mock' import { LambdaClient, InvokeCommand...

bug
waiting for reply

If I do: ```javascript ddbMock.on(QueryCommand).resolvesOnce(validResult); ddbMock.on(QueryCommand).rejectsOnce(error); ``` instead of ```javascript ddbMock.on(QueryCommand) .resolvesOnce(validResult) .rejectsOnce(error); ``` the mock will only reject with `error` once, overwriting the `ddbMock.on(QueryCommand).resolvesOnce(validResult)`. I'm not sure if this...

bug

The AWS SDK Client `send()` method [may be used with a callback](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/interfaces/_aws_sdk_types.invokefunction.html) instead of async/await approach. This usage is not mocked right now. There are silenced unit tests ready. -----...

enhancement

S3 presign is done using a helper library `@aws-sdk/s3-request-presigner` this seems like something that would need a helper library or additional documentation to mock properly. It would be good to...

enhancement

Hi First thanks so much for creating this :)! Second, I was wondering if a function could be made to easily retrieve the params sent to the command e.g. ```...

enhancement