It takes 9 seconds to run my tests, but each test is < 20ms? #274
Labels
external-dependency
Depends on an entity/dependency external to the team's control
technical
A technical issue that requires understanding of the code, infrastructure or dependencies
I'm wondering if the AWS SDK is doing something behind the scenes during initialization. It's taking 9 seconds to run two simple tests where I'm mocking
DynamoDB.putItem
, however jest is reporting the time for each test as taking less than 20ms.Can anyone see if I'm doing something wrong? Or, is this just to be expected when mocking the SDK?
Here's my test suite:
And here's the source module that it's testing (database.ts):
Test run output:
The text was updated successfully, but these errors were encountered: