Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 1.3 KB

README.md

File metadata and controls

33 lines (17 loc) · 1.3 KB

Node Test Utils for AWS

Provides test utils for writing tests that interact with AWS resources.

Dynamo

require('aws-test-utils').dynamo(dynamo_doc_client)

Pass a Dynamo Doc Client to create dynamo test util object. Provides utility methods to create/delete tables, load fixtures, get/delete items from dynamo table. You will need to configure AWS credentials as per AWS NodeJS SDK documentation.

Promise support

Create promise version as follows:

require('aws-test-utils').dynamo(dynamo_doc_client).promise()

Lambda

require('aws-test-utils').lambda

Provides utility methods to generate kinesis and dynamo stream payloads.

Kinesis

require('aws-test-utils').kinesis(kinesis_client)

Pass a Kinesis Client to create kinesis test util object. Provides utility methods to create/delete streams, get records from stream. You will need to configure AWS credentials as per AWS NodeJS SDK documentation.

Promise support

Create promise version as follows:

require('aws-test-utils').kinesis(kinesis_client).promise()