MCPcopy Create free account
hub / github.com/vercel/vercel / createNodejsLambda

Function createNodejsLambda

packages/build-utils/test/unit.finalize-lambda.test.ts:27–37  ·  view source on GitHub ↗
(files?: Record<string, FileBlob>)

Source from the content-addressed store, hash-verified

25}
26
27function 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
39describe('finalizeLambda()', () => {
40 it('returns buffer, digest, and uncompressedBytes', async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected