@tsed/platform-serverless-testing
Version:
Module to test Serverless function with Ts.ED
14 lines • 393 B
JavaScript
export function createFakeContext(context) {
return {
awsRequestId: "awsRequestId",
callbackWaitsForEmptyEventLoop: false,
functionName: "",
functionVersion: "",
invokedFunctionArn: "",
logGroupName: "",
logStreamName: "",
memoryLimitInMB: "",
...(context || {})
};
}
//# sourceMappingURL=createFakeContext.js.map