Skip to content

Setup hangs when using custom endpoint. #160

@babatakao

Description

@babatakao

The endpoint configured in here can be overridden by jest-dynamodb-config.js. This is typically useful for docker-compose environment.

// jest-dynamodb-config.js
module.exports = () => {
  return {
    clientConfig: {
      endpoint: 'http://dynamodb:8000',
      region: 'localhost-test',
      credentials: { accessKeyId: "access-key", secretAccessKey: "secret-key" },
    },
  };
};

However, waitForLocalhost does not respect the custom endpoint config. It checks only localhost. This causes hanging-up with non-localhost endpoint.

Note that since jest-dynamodb 1.8.1 does not have waitForLocalhost check, custom endpoint worked well on that version. Thus, it feels like a regression for docker-compose users who do not want to launch dynamodb-local.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions