import { setConfigDir , getDynalitePort } from "./config" ; export default ( withConfigDir ) : void => { setConfigDir ( withConfigDir ) ; const port = getDynalitePort ( ) ; process . env . MOCK_DYNAMODB_PORT = port . toString ( ) ; process . env . MOCK_DYNAMODB_ENDPOINT = `http://localhost:${ port }` ; if ( ! process . env . AWS_ACCESS_KEY_ID ) { process . env . AWS_ACCESS_KEY_ID = "access-key" ; } if ( ! process . env . AWS_SECRET_ACCESS_KEY ) { process . env . AWS_SECRET_ACCESS_KEY = "secret-key" ; } } ;