0.0.1-alpha.62 • Published 3 years ago

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

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

0.0.1-alpha.66

3 years ago

0.0.1-alpha.68

3 years ago

0.0.1-alpha.63

3 years ago

0.0.1-alpha.62

3 years ago

0.0.1-alpha.65

3 years ago

0.0.1-alpha.64

3 years ago

0.0.1-alpha.58

3 years ago

0.0.1-alpha.53

3 years ago

0.0.1-alpha.52

3 years ago