Provides a simplified utility layer for starting, operating, and shutting down a postgres docker container.
Will automatically pull the requested docker image before starting the container.
new
MongoTestContainer(container: Container,connection: MongoConnectionInfo,)
readonly
client: MongoClient
readonly
exec: this.container.exec
Execute a command in the Mongo container.
Return the connection URL for the Mongo container in the format:
mongodb://${user}:${pass}@${host}:${port}.
Make sure to start the container before accessing this method or it will throw an error.
start(image?: string,config?: Partial<MongoConnectionInfo>,): Promise<MongoTestContainer>
Start a new Mongo container.