(files?: Record<string, FileBlob>)
| 25 | } |
| 26 | |
| 27 | function createNodejsLambda(files?: Record<string, FileBlob>) { |
| 28 | return new NodejsLambda({ |
| 29 | files: files ?? { |
| 30 | 'index.js': new FileBlob({ data: 'exports.handler = () => {};' }), |
| 31 | }, |
| 32 | handler: 'index.js', |
| 33 | runtime: 'nodejs20.x', |
| 34 | shouldAddHelpers: false, |
| 35 | shouldAddSourcemapSupport: false, |
| 36 | }); |
| 37 | } |
| 38 | |
| 39 | describe('finalizeLambda()', () => { |
| 40 | it('returns buffer, digest, and uncompressedBytes', async () => { |
no outgoing calls
no test coverage detected