Replies: 2 comments 3 replies
-
So I actually increased the It's as if the tests start running before the globalSetup scripts finish? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Global setup files are running one after another, if you need to wait a bit, you can add a |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have 2 globalSetup files in the following order:
globalSetup.ts
dynamodbSetup.ts
The issue seems to be that
dynamodbSetup.ts
runs too quickly, before the local DynamoDB process has fully started. I tested this by running the tests and usingaws dynamodb list-tables --endpoint-url http://127.0.0.1:8000
to check the tables and it takes a few seconds to be able to connect.How can I make sure the setup function in
globalSetup.ts
is complete?Beta Was this translation helpful? Give feedback.
All reactions