0.2.1 • Published 9 months ago

@labdigital/mock-dynamodb v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

DynamoDB Mock

This is a relatively simple wrapper around dynalite to make it easier to use in a test environment.

npm

Usage

import { mockDynamoDB } from "@labdigital/mock-dynamodb";

const mddb = mockDynamoDB({ endpoint: "http://localhost:4000" });
const client = new DynamoDB({
	endpoint: "http://localhost:4000",
	region: "local",
	credentials: {
		accessKeyId: "fake-x",
		secretAccessKey: "fake",
	},
});

mddb.reset(); // Clear all data

mddb.stop(); // Stop the server
0.2.1

9 months ago

0.2.0

9 months ago

0.1.0

9 months ago