@lambda-func/sns
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@lambda-func/sns

This package contains a set of utilities for when working with SNS handlers.

Usage

import { sns } from '@lambda-func/sns'

export const handler = sns()(async (event) => {
  expect(typeof event).toBe('object')
})

Testing

This package also includes some testing utilities to make input mapping easier.

  • createParsedSNSRecord() - mock the input event for the middleware stack

Other Options

  • createSNSEvent() - for raw event mocking
  • createSNSRecord() - after record iteration

Readme

Keywords

none

Package Sidebar

Install

npm i @lambda-func/sns

Weekly Downloads

0

Version

0.1.2

License

ISC

Unpacked Size

5.74 kB

Total Files

12

Last publish

Collaborators

  • cgiles95