Skip to content

mashable/node-aws-test-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

Packages

No packages published