{"library":"aws-sdk-mock","type":"library","category":null,"description":"aws-sdk-mock is a JavaScript/TypeScript library designed to facilitate unit testing of applications that interact with the AWS SDK, specifically targeting AWS SDK for JavaScript v2. It enables developers to replace actual AWS service calls with predefined responses or custom functions during tests, preventing unintended interactions with real AWS infrastructure. The current stable version is 6.2.2. While there isn't a strict time-based release cadence, the project is actively maintained, with recent minor updates addressing dependencies and security vulnerabilities (e.g., v6.2.0 addressing CVE-2024-45296) and a significant TypeScript rewrite in v6.0.1. It differentiates itself by leveraging Sinon.js internally to create robust mocks for AWS service methods like S3.getObject or DynamoDB.putItem, offering explicit `mock`, `restore`, and `remock` functions. A key limitation and differentiator is its primary focus on AWS SDK v2; for AWS SDK v3, direct mocking of modular clients might be preferred, reducing the need for this library.","language":"javascript","status":"maintenance","version":"6.2.2","tags":["javascript","aws-sdk","aws","Amazon","Lambda","API-Gateway","S3","DynamoDB","SNS","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install aws-sdk-mock","imports":["import { mock } from 'aws-sdk-mock';","import { restore } from 'aws-sdk-mock';","import { remock } from 'aws-sdk-mock';"]},{"cmd":"yarn add aws-sdk-mock","imports":[]},{"cmd":"pnpm add aws-sdk-mock","imports":[]}],"homepage":null,"github":"https://github.com/dwyl/aws-sdk-mock","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/aws-sdk-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/aws-sdk-mock/compatibility"}}