lambda-leak
Simple utility to detect resource leaks in AWS Lambda handlers using Node.js that can lead to expensive charges lengthy operations or failures from timeouts.
Features
- Detects socket leaks
- Detects excess timers
- Works with mocha's timeout system
- Works with Node 6.10.x
Installation
Install via npm.
npm install lambda-leak
Getting Started
The lambda-leak
detector should be used within a unit testing environment, like mocha
, to capture and diagnose potential resource leaks. The
following example demonstrates how to use the leak detector inside a unit test.
'use strict'; const lambdaLeak = ; const handler = ;
lambda-leak
Projects Using lambda-tester
- reduce the time and effort to test AWS Lambda handlers.
Feedback
We'd love to get feedback on how you're using lambda-tester and things we could add to make this tool better. Feel free to contact us at feedback@vandium.io