-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest-dynamodb-config.js
43 lines (43 loc) · 1.25 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
39
40
41
42
43
module.exports = {
tables: [
{
TableName: `boards`,
KeySchema: [{ AttributeName: "Name", KeyType: "HASH" }],
AttributeDefinitions: [{ AttributeName: "Name", AttributeType: "S" }],
BillingMode: "PAY_PER_REQUEST",
},
{
TableName: `scores`,
KeySchema: [
{ AttributeName: "Board_Name", KeyType: "HASH" },
{ AttributeName: "Player_ID", KeyType: "RANGE" },
],
AttributeDefinitions: [
{ AttributeName: "Board_Name", AttributeType: "S" },
{ AttributeName: "Player_ID", AttributeType: "S" },
],
BillingMode: "PAY_PER_REQUEST",
},
{
TableName: `nodes`,
KeySchema: [
{ AttributeName: "Board_Name", KeyType: "HASH" },
{ AttributeName: "Node_ID", KeyType: "RANGE" },
],
AttributeDefinitions: [
{ AttributeName: "Node_ID", AttributeType: "S" },
{ AttributeName: "Board_Name", AttributeType: "S" },
],
BillingMode: "PAY_PER_REQUEST",
},
{
TableName: `leaderboards`,
KeySchema: [{ AttributeName: "Board_Name", KeyType: "HASH" }],
AttributeDefinitions: [
{ AttributeName: "Board_Name", AttributeType: "S" },
],
BillingMode: "PAY_PER_REQUEST",
},
],
port: 8000,
};