Version: 25.x
Using with DynamoDB
With the Global Setup/Teardown and Async Test Environment APIs, Jest can work smoothly with DynamoDB.
#
Use jest-dynamodb PresetJest DynamoDB provides all required configuration to run your tests using DynamoDB.
- First, install
@shelf/jest-dynamodb
- Specify preset in your Jest configuration:
- Create
jest-dynamodb-config.js
and define DynamoDB tables
See Create Table API
- Configure DynamoDB client
- Write tests
There's no need to load any dependencies.
See documentation for details.