aws-sdk-client-mock
aws-sdk-mock
aws-sdk-client-mock | aws-sdk-mock | |
---|---|---|
2 | 3 | |
724 | 1,085 | |
- | 0.8% | |
7.5 | 8.5 | |
13 days ago | 1 day ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
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-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.
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.
What are some alternatives?
mocha - βοΈ simple, flexible, fun javascript test framework for node.js & the browser
fast-check - Property based testing framework for JavaScript (like QuickCheck) written in TypeScript
Sinon.JS - Test spies, stubs and mocks for JavaScript.
mongodb-memory-server - Spinning up mongod in memory for fast tests. If you run tests in parallel this lib helps to spin up dedicated mongodb servers for every test file in MacOS, *nix, Windows or CI environments (in most cases with zero-config).
ava - Node.js test runner that lets you develop with confidence π
fluentfixture - A flexible tool for generating customizable mock data with a fluent interface π
org-formation-cli - Better than landingzones!
ng-mocks - Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup