Skip to content

Commit 85f572e

Browse files
author
aws-amplify-bot
committed
fix: mock tests and dynamodb sim
1 parent 9f05e7c commit 85f572e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/amplify-e2e-tests/src/__tests__/dynamodb-simulator/dynamodb-simulator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('emulator operations', () => {
7373
const dynamo = ddbSimulator.getClient(emu);
7474

7575
const tables = await dynamo.send(new ListTablesCommand());
76-
expect(tables.TableNames).toEqual(undefined);
76+
expect(tables.TableNames).toEqual([]);
7777
});
7878

7979
it('should preserve state between restarts with dbPath', async () => {

packages/amplify-util-mock/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
"@aws-amplify/amplify-opensearch-simulator": "1.7.20",
3939
"@aws-amplify/amplify-prompts": "2.8.7",
4040
"@aws-amplify/amplify-provider-awscloudformation": "8.11.9",
41+
"@aws-sdk/client-dynamodb": "^3.624.0",
42+
"@aws-sdk/client-dynamodb-streams": "^3.624.0",
4143
"@hapi/topo": "^5.0.0",
4244
"amplify-codegen": "^4.10.3",
4345
"amplify-dynamodb-simulator": "2.9.24",
@@ -70,8 +72,6 @@
7072
"@aws-amplify/graphql-transformer-core": "^2.11.1",
7173
"@aws-amplify/graphql-transformer-interfaces": "^3.12.0",
7274
"@aws-amplify/graphql-transformer-migrator": "^2.2.32",
73-
"@aws-sdk/client-dynamodb": "^3.624.0",
74-
"@aws-sdk/client-dynamodb-streams": "^3.624.0",
7575
"@types/detect-port": "^1.3.0",
7676
"@types/jest": "^29.0.0",
7777
"@types/lodash": "^4.14.149",

0 commit comments

Comments
 (0)