2.0.2 • Published 4 years ago

mocdoc v2.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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