Skip to content

Latest commit

 

History

History
67 lines (58 loc) · 1.96 KB

README.md

File metadata and controls

67 lines (58 loc) · 1.96 KB

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