aws-sdk-mock
aws-sdk-client-mock
aws-sdk-mock | aws-sdk-client-mock | |
---|---|---|
3 | 2 | |
1,104 | 787 | |
0.5% | - | |
9.2 | 7.9 | |
6 days ago | 2 months ago | |
TypeScript | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
aws-sdk-mock
-
Alternative to AWS Mock
I donβt think you need AWS Mock to test your Lambdas.
-
Jest Testing like a Pro - Tips and tricks
This does not mean we never used aws-sdk-mock - haven't tried yet this version for SDK v3 - check this article for more info - but in general I try to write very simple unit tests, and very simple integration tests, keeping mocks to a minimum.
-
How to mock and spy on AWS-SDK calls with jest
You can use a dedicated module that makes mocking easier like aws-sdk-mock. I just prefer to use as little dependencies as possible, especially in bigger projects.
aws-sdk-client-mock
-
Top 12 Serverless Announcements from re:Invent 2022
If you are using the AWS JS SDK v3, the best way to mock it for unit tests is to use the aws-sdk-client-mock library.
-
Jest Testing like a Pro - Tips and tricks
This does not mean we never used aws-sdk-mock - haven't tried yet this version for SDK v3 - check this article for more info - but in general I try to write very simple unit tests, and very simple integration tests, keeping mocks to a minimum.
What are some alternatives?
mocha - βοΈ simple, flexible, fun javascript test framework for node.js & the browser
Sinon.JS - Test spies, stubs and mocks for JavaScript.
fluentfixture - A flexible tool for generating customizable mock data with a fluent interface π
ava - Node.js test runner that lets you develop with confidence π
fast-check - Property based testing framework for JavaScript (like QuickCheck) written in TypeScript
org-formation-cli - Better than landingzones!
mongodb-memory-server - Manage & spin up mongodb server binaries with zero(or slight) configuration for tests.
ng-mocks - Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup
aws-appsync-community - The AWS AppSync community
itty-aws - A teeny tiny ~49KB AWS SDK for TypeScript