rynop / dynamodb-local

A wrapper for AWS DynamoDB Local, intended for use in testcases
MIT License
53 stars 30 forks source link

Better example of detached server required #51

Open paul-uz opened 8 months ago

paul-uz commented 8 months ago

I'm struggling to get the detached server working reliably with Vitest.

The docs have the comment // must be wrapped in async function but do not offer a real example.

The Java process seems to launch, and some times, everything works OK, but then sometime the CreateTableCommand fails, or the process isn't stopped, meaning the next test to try and start the process might fail cos a table already exists etc.

Basically, please provide real world usage examples of how to use the detached server so tests can run properly, spinning up and stopping the java process as needed.