Skip to content

nerdmax/vitest-dynalite

Repository files navigation

vitest-dynalite

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release

My awesome module

Install

npm install vitest-dynalite

Usage

import { setupDynamoDB } from 'vitest-dynalite';

setupDynamoDB([
  {
    KeySchema: [
      {
        AttributeName: 'pk',
        KeyType: 'HASH', // Partition key
      },
      {
        AttributeName: 'sk',
        KeyType: 'RANGE', // Sort key
      },
    ],
    AttributeDefinitions: [
      {
        AttributeName: 'pk',
        AttributeType: 'S',
      },
      {
        AttributeName: 'sk',
        AttributeType: 'S',
      },
    ],
    BillingMode: 'PAY_PER_REQUEST',
    TableName: 'testTable',
  },
]);

API

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published