We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c9ba54 + 483ee9f commit 2ddcd46Copy full SHA for 2ddcd46
src/teardown.ts
@@ -17,7 +17,7 @@ module.exports = async function (jestArgs: JestArgs) {
17
const dynamoDB = global.__DYNAMODB_CLIENT__;
18
const {TableNames: tableNames} = await dynamoDB.listTables({});
19
20
- if (tableNames && tableNames.length) {
+ if (tableNames?.length) {
21
await Promise.all(tableNames.map(tableName => dynamoDB.deleteTable({TableName: tableName})));
22
}
23
0 commit comments