0.0.1-alpha.62 • Published 4 years ago

@cdk-utils/factories v0.0.1-alpha.62

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

AWS-CDK Utils - Factories

Factories uses fishery to create stock factories for AWS events, helping to accelerate your testing.

Usage

With Jest

import { awsFactory } from '@cdk-utils/factories';
import { handler } from 'src/lambda.ts';

test("lambda", () => {
  const event = awsFactory.apiGatewayProxyEventV2({
    body: JSON.stringify({ message: 'test'})
  })

  const result = await handler(event)

  expect(result).toEqual({
    statusCode: 200,
    body: JSON.stringify({
      message: 'paased'
    })
  })
})
0.0.1-alpha.67

4 years ago

0.0.1-alpha.66

4 years ago

0.0.1-alpha.68

4 years ago

0.0.1-alpha.63

4 years ago

0.0.1-alpha.62

4 years ago

0.0.1-alpha.65

4 years ago

0.0.1-alpha.64

4 years ago

0.0.1-alpha.58

4 years ago

0.0.1-alpha.53

4 years ago

0.0.1-alpha.52

4 years ago