-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest-dynamodb-config.js
38 lines (37 loc) · 1.03 KB
/
jest-dynamodb-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* @type {import('@shelf/jest-dynamodb/lib').Config}')}
*/
const config = {
tables: [
{
AttributeDefinitions: [
{ AttributeName: 'tableName', AttributeType: 'S' },
],
BillingMode: 'PAY_PER_REQUEST',
KeySchema: [{ AttributeName: 'tableName', KeyType: 'HASH' }],
TableName: 'autoincrement',
},
{
BillingMode: 'PAY_PER_REQUEST',
AttributeDefinitions: [{ AttributeName: 'widgetID', AttributeType: 'N' }],
KeySchema: [{ AttributeName: 'widgetID', KeyType: 'HASH' }],
TableName: 'widgets',
},
{
BillingMode: 'PAY_PER_REQUEST',
AttributeDefinitions: [
{ AttributeName: 'widgetID', AttributeType: 'N' },
{ AttributeName: 'version', AttributeType: 'N' },
],
KeySchema: [
{ AttributeName: 'widgetID', KeyType: 'HASH' },
{ AttributeName: 'version', KeyType: 'RANGE' },
],
TableName: 'widgetHistory',
},
],
installerConfig: {
installPath: './dynamodb_local_latest',
},
}
module.exports = config