Writing tests with local dynamodb using mocha

Viewed 454

I am using Dynamodb for an api service I am writing. I started writing tests and I found that there is no command(or query) which destroys all the "items" in a table. I am using vogels to access dynamodb.

I usually clean the table before every test. How do I do that given that there is no single command( or query) that deletes all the items in a table?

If I delete each item one by one the tests start executing before all the items get deleted.

1 Answers
Related