Lambda-TDD is a testing framework for AWS Lambda functions, version 9.0.5 as of this entry. It enables integration tests defined as JSON files, modeling cloud execution closely by executing Lambda functions via Lambda-Wrapper, mocking external requests with Nock, setting environment variables per test, freezing time with Timekeeper, and checking success/error responses. Released on npm, it requires Node >=20 and peer dependencies Chai >=5.0.0 and Nock >=13.2.4. Differentiators include JSON-based test definitions, granular environment variable control, and built-in nock healing.
npm install lambda-tddNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize LambdaTdd test runner with command-line options and execute all auto-detected test files.
Replace const x = require('lambda-tdd') with import x from 'lambda-tdd'; ensure tsconfig.json has module resolution set to 'node16' or 'bundler'.Run: npm install --save-dev chai@>=5.0.0 nock@>=13.2.4
Use: npm t -- --filter=REGEX (note the extra --)
Review changelog for migration; consider using nock's native cleanup.
Run npm install --save-dev lambda-tdd; ensure package.json has 'type': 'module' or use .mjs extension.
Switch to import LambdaTdd from 'lambda-tdd'. For Node <20, upgrade or use bundler.
Run: npm install --save-dev chai@>=5.0.0