File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,16 @@ const DEFAULT_OPTIONS = ['-sharedDb'];
1212
1313module . exports = async function ( ) {
1414 const config = require ( resolve ( cwd ( ) , 'jest-dynamodb-config.js' ) ) ;
15- const { tables, port : port = DEFAULT_PORT , options : options = DEFAULT_OPTIONS } =
15+ const { tables, port : port = DEFAULT_PORT , options : options = DEFAULT_OPTIONS , clientConfig } =
1616 typeof config === 'function' ? await config ( ) : config ;
17+
1718 const dynamoDB = new DynamoDB ( {
18- endpoint : ' localhost:' + port ,
19+ endpoint : ` localhost:${ port } ` ,
1920 sslEnabled : false ,
20- region : 'local-env'
21+ region : 'local-env' ,
22+ ...clientConfig
2123 } ) ;
24+
2225 global . __DYNAMODB__ = await DynamoDbLocal . launch ( port , null , options ) ;
2326
2427 await createTables ( dynamoDB , tables ) ;
You can’t perform that action at this time.
0 commit comments