Skip to content

Commit 2ddcd46

Browse files
committed
Merge branch 'feature/typescript-support' of https://github.com/shelfio/jest-dynamodb into feature/typescript-support
2 parents 6c9ba54 + 483ee9f commit 2ddcd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/teardown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = async function (jestArgs: JestArgs) {
1717
const dynamoDB = global.__DYNAMODB_CLIENT__;
1818
const {TableNames: tableNames} = await dynamoDB.listTables({});
1919

20-
if (tableNames && tableNames.length) {
20+
if (tableNames?.length) {
2121
await Promise.all(tableNames.map(tableName => dynamoDB.deleteTable({TableName: tableName})));
2222
}
2323
}

0 commit comments

Comments
 (0)