My awesome module
npm install vitest-dynalite
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',
},
]);