{"repo":"m-radzikowski/aws-sdk-client-mock","free":true,"listed":false,"github":"https://github.com/m-radzikowski/aws-sdk-client-mock","clone":"git clone https://github.com/m-radzikowski/aws-sdk-client-mock.git","description":"AWS JavaScript SDK v3 mocks for easy unit testing. 🖋️ Typed 🔬 Tested 📄 Documented 🛠️ Maintained","language":"TypeScript","stars":911,"topics":["aws","aws-lambda","unit-testing","testing","mock","aws-sdk"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"AWS SDK v3 Client mock Easy and powerful mocking of AWS SDK v3 Clients. Library recommended by the AWS SDK for JavaScript team - see the introductory post on the AWS blog. Features: - 🌊&nbsp; fluent interface - declaring behavior is short and readable - 🔍&nbsp; matching options - defining mock behavior by Command type and/or its input payload - 🕵️&nbsp; spying - checking if Commands were actually sent - 🃏&nbsp; Jest matchers - easily verifying sent Commands - 🖋️&nbsp; fully typed - same type control for declaring mock's behavior as when writing regular code - ✅&nbsp; fully tested - reliable mocks help instead of impeding In action: Table of Contents - About AWS SDK v3 - Usage - Install - Versions compatibility - Import - Mock - DynamoDB DocumentClient - Lib Storage Upload - S3 GetObjectCommand - Paginated operations - SDK v2-style mocks - Inspect - Reset and restore - Custom matchers - Jest - Vitest - API Reference - AWS Lambda example - Caveats - Mixed @smithy/types versions - AwsClientStub and strictFunctionTypes - Order of mock behaviors - Order of type and instance mocks - Using with Mocha About AWS SDK v3 The AWS SDK for JavaScript version 3, is the new version of SDK to use in Node.js and browser. It comes with modular architecture and improved typing, thanks to being written in TypeScript. The recommended way of using it is to create a Client and use it to send Commands . For example, using SNS Client to publish a message to a topic looks like that: This library p","default_branch":null,"files":null,"tree":[],"storefront":"/r/m-radzikowski","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/m-radzikowski/aws-sdk-client-mock/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}