Provides test utils for writing tests that interact with AWS resources.
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.
Create promise version as follows:
require('aws-test-utils').dynamo(dynamo_doc_client).promise()
require('aws-test-utils').lambda
Provides utility methods to generate kinesis and dynamo stream payloads.
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.
Create promise version as follows:
require('aws-test-utils').kinesis(kinesis_client).promise()