tomdavidson / aws-mock-events

Mock AWS Events

Home Page:https://gitlab.com/tom.davidson/aws-mock-events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Supported Mock Events

  • SNS
  • S3 Put
  • DynamoDB
  • Config Chane
  • Config Periodic

Usage

// other suggested mocks
const AWS = require('aws-sdk-mock');
const context = require('aws-lambda-mock-context');

// mocks from this module
const mockSNSEvent = require('aws-mock-events').SNS;
const mockDDBEvent = require('aws-mock-events').DynamoDB;
const mockS3PutEvent = require('aws-mock-events').S3Put;
const ConfigChange = require('aws-mock-events').ConfigChange;
const ConfigPeriodic = require('aws-mock-events').ConfigPeriodic;

// modify the event to suite your tests
mockSNSEvent.Records[0].Sns.Message = 'testMessage';

About

Mock AWS Events

https://gitlab.com/tom.davidson/aws-mock-events


Languages

Language:JavaScript 100.0%