(files?: Record<string, FileBlob>)
| 15 | }; |
| 16 | |
| 17 | function createBasicLambda(files?: Record<string, FileBlob>) { |
| 18 | return new Lambda({ |
| 19 | files: files ?? { |
| 20 | 'index.js': new FileBlob({ data: 'exports.handler = () => {};' }), |
| 21 | }, |
| 22 | handler: 'index.handler', |
| 23 | runtime: 'nodejs20.x', |
| 24 | }); |
| 25 | } |
| 26 | |
| 27 | function createNodejsLambda(files?: Record<string, FileBlob>) { |
| 28 | return new NodejsLambda({ |
no outgoing calls
no test coverage detected