mocdoc

2.0.2 • Public • Published

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

Package Sidebar

Install

npm i mocdoc

Weekly Downloads

0

Version

2.0.2

License

MIT

Unpacked Size

5.22 kB

Total Files

5

Last publish

Collaborators

  • twoseventythree