-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
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