Skip to content

schedulino/aws-lambda-test-utils

Repository files navigation

aws-lambda-test-utils

Build Status

AWS Lambda mock event objects for most common AWS services.

Installation

$ npm install --save-dev @schedulino/aws-lambda-test-utils

Use in your Tests

import {
  apiGatewayEventMock,
  apiGatewayProxyResultMock,
  contextMock,
} from '@schedulino/aws-lambda-test-utils';

const apiGatewayEvent = apiGatewayEventMock();
const apiGatewayProxyResult = apiGatewayProxyResultMock();
const context = contextMock();