Jest DynamoDB Test Failing
I am attempting to write a jest unit test involving using DynamoDB. It seems the afterAll
condition is executing too fast which is making my integ test failing since it fails to get the already deleted items.
How to mock my util DynamoDB GetItemCommand implementation?
I’ve got code that uses GetItemCommand
to get data from my DynamoDb instance, however I’m not entirely sure how I go about testing my function that uses it.