Topic
Testing
2 tutorials tagged Testing.
AWS & Serverless
Jest spyOn and mockImplementation for AWS Lambda tests: mock DynamoDB and S3 in beforeEach
Test a Lambda handler without touching AWS. Use jest.spyOn on a class prototype, mockImplementation in beforeEach, restore mocks, assert calls, and write one real integration test for the database class.
12 Nov 2026 · AWS · Lambda · Jest
AWS & Serverless
Test-driven development for AWS Lambda with Jest: mocks and spies explained
Stop deploying to test. Write Lambda handlers test-first with Jest: the TDD loop, a to-do list per function, mocking the database with jest.spyOn and mockImplementation, and validating input with Zod. Real tests from the VidShare course.
10 Nov 2026 · AWS · Lambda · Jest
Browse by topic
The full course
VidShare: 109 lessons
Build a production-style video streaming backend on AWS, from architecture to final test.
See the course and free lessons →The full course
CLI Mastery: 57 lessons
Get fast and fluent in the terminal, from the filesystem to shell scripts and real servers.
See the course and free lessons →