{"id":20920122,"url":"https://github.com/vandium-io/lambda-tester","last_synced_at":"2025-10-06T02:13:31.037Z","repository":{"id":6023235,"uuid":"54505054","full_name":"vandium-io/lambda-tester","owner":"vandium-io","description":"Helper for unit testing AWS Lambda functions","archived":false,"fork":false,"pushed_at":"2024-02-07T16:08:19.000Z","size":312,"stargazers_count":271,"open_issues_count":25,"forks_count":51,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-08-29T07:27:02.960Z","etag":null,"topics":["aws-lambda"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vandium-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-22T20:02:26.000Z","updated_at":"2025-06-25T16:33:58.000Z","dependencies_parsed_at":"2024-06-18T12:40:43.168Z","dependency_job_id":"322bbae6-958d-4c86-b51d-3ea585a938bd","html_url":"https://github.com/vandium-io/lambda-tester","commit_stats":{"total_commits":201,"total_committers":17,"mean_commits":"11.823529411764707","dds":"0.40796019900497515","last_synced_commit":"9ebc71a61206749c467cc71658a633785f10dfa2"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/vandium-io/lambda-tester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandium-io%2Flambda-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandium-io%2Flambda-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandium-io%2Flambda-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandium-io%2Flambda-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vandium-io","download_url":"https://codeload.github.com/vandium-io/lambda-tester/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandium-io%2Flambda-tester/sbom","scorecard":{"id":915833,"data":{"date":"2025-08-11","repo":{"name":"github.com/vandium-io/lambda-tester","commit":"9ebc71a61206749c467cc71658a633785f10dfa2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 2/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-rrc9-gqf8-8rwg","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T20:57:04.664Z","repository_id":6023235,"created_at":"2025-08-24T20:57:04.664Z","updated_at":"2025-08-24T20:57:04.664Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273790532,"owners_count":25168670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-lambda"],"created_at":"2024-11-18T18:08:50.858Z","updated_at":"2025-10-06T02:13:31.009Z","avatar_url":"https://github.com/vandium-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/vandium-io/lambda-tester.svg?branch=master)](https://travis-ci.org/vandium-io/lambda-tester)\n[![npm version](https://badge.fury.io/js/lambda-tester.svg)](https://badge.fury.io/js/lambda-tester)\n\n# lambda-tester\n\nSimplifies writing unit tests for [AWS Lambda](https://aws.amazon.com/lambda/details) functions using [Node.js](https://nodejs.org).\n\n## Features\n* Verifies correct handler behavior\n* Mocks event types with code\n* Works asynchronously\n* Supports Promises\n* Verifies Node.js runtime version\n* AWS X-Ray support [experimental]\n* Detects resource leaks [experimental]\n* Easily integrates with test frameworks (Mocha and Jasmine)\n* Handlers can be loaded and removed after execution\n* Lightweight and won't impact performance\n* Maps the environment variable `LAMBDA_TASK_ROOT` to the application's root\n* Automatically loads .env files\n* Works with Node 10.x, and 12.x\n\n## Installation\nInstall via npm.\n\n\tnpm install lambda-tester --save-dev\n\n\n## Getting Started\n\nLambda handlers with support for callbacks use the typical Node.js asynchronous signature:\n\n```js\nexports.handler = function( event, context, callback ) {\n\n    callback( null, 'success!' );\n}\n```\n\n\nThe following example shows a simple case for validating that the Lambda (handler) was called successfully (i.e. `callback( null, result )`:\n\n```js\nconst LambdaTester = require( 'lambda-tester' );\n\nconst myHandler = require( '../index' ).handler;\n\ndescribe( 'handler', function() {\n\n\tit( 'test success', async function() {\n\n\t\tawait LambdaTester( myHandler )\n\t\t\t.event( { name: 'Fred' } )\n\t\t\t.expectResult();\n\t});\n});\n```\n\nIf the handler calls `callback( err )`, then the test will fail.\n\nAdditionally, if one wanted to test for failure, then the following code would be used:\n\n```js\nconst LambdaTester = require( 'lambda-tester' );\n\nconst myHandler = require( '../index' ).handler;\n\ndescribe( 'handler', function() {\n\n\tit( 'test failure', async function() {\n\n\t\tawait LambdaTester( myHandler )\n\t\t\t.event( { name: 'Unknown' } )\n\t\t\t.expectError();\n\t});\n});\n```\n\n**Note:** you must either return the `LambdaTester` instance back to the testing\nframework or use the `await`/`async` keywords.\n\n## Documentation\n\nComplete documentation can be found in our [documentation](docs) page.\n\n## Projects Using `lambda-tester`\n\n* [vandium](https://github.com/vandium-io/vandium-node) - Secures and simplifies AWS Lambda handlers\n\n## Feedback\n\nWe'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`\n\n## Compatibility\n\nStarting with version 4.0, lambda-tester supports node versions 10 and higher. If you require support for older versions of node, then use a previous version of lambda-tester.\n\n\n## License\n\n[BSD-3-Clause](https://en.wikipedia.org/wiki/BSD_licenses)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvandium-io%2Flambda-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvandium-io%2Flambda-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvandium-io%2Flambda-tester/lists"}