mocdoc
v2.0.2
Published
In-memory DynamoDB, designed with parallel testing in mind.
Downloads
4
Maintainers
Readme
mocdoc
Run in-memory DynamoDB instances for parallel testing (e.g. Ava). Heavily inspired by MongoDB Memory Server; backed by Dynalite.
Install
npm install --save-dev mocdoc
Use
const AWS = require('aws-sdk')
const { DynamoDBMemoryServer } = require('mocdoc')
const DynamoDB = new DynamoDBMemoryServer()
const endpoint = await DynamoDB.getEndpoint()
const dynamoClient = AWS.DynamoDB({ endpoint })
Debug logging is enabled with the DEBUG=mocdoc
env var.
License
MIT