99x / dynamodb-localhost

Dynamodb localhost runner for development and testing
MIT License
35 stars 92 forks source link

Make work with worker #73

Open mrloop opened 2 years ago

mrloop commented 2 years ago

I'm using dynamodb-localhost in vitest, it uses worker threads and as suggested https://github.com/vitest-dev/vitest/issues/1544 a check is required when spawning

Otherwise you get an error similar to

TypeError [ERR_INVALID_ARG_VALUE]: The argument 'stdio' is invalid. Received WritableWorkerStdio {
  _writableState: WritableState {
    objectMode: false,
    highWaterMark: 16384,
    finalCalled: false,...