mongodb-memory-server-core
    Preparing search index...

    Interface MongoMemoryInstanceOpts

    interface MongoMemoryInstanceOpts {
        args?: string[];
        auth?: boolean;
        dbName?: string;
        dbPath?: string;
        ip?: string;
        keyfileLocation?: string;
        launchTimeout?: number;
        port?: number;
        replicaMemberConfig?: ReplicaMemberConfig;
        replSet?: string;
        storageEngine?: StorageEngine;
    }

    Hierarchy (View Summary)

    Index

    Properties

    args?: string[]

    Extra Arguments to add

    auth?: boolean

    Set which parameter will be used true -> "--auth" false -> "--noauth"

    false
    
    dbName?: string

    Currently unused option

    undefined
    
    dbPath?: string

    Set which storage path to use Adds "--dbpath"

    TmpDir
    
    ip?: string

    for binding to all IP addresses set it to ::,0.0.0.0, by default '127.0.0.1' Adds "--bind_ip"

    undefined
    
    keyfileLocation?: string

    Location for the "--keyfile" argument Only has an effect when "auth" is enabled and is a replset Adds "--keyfile"

    undefined
    
    launchTimeout?: number

    Define a custom timeout for when out of some reason the binary cannot get started correctly Time in MS

    10000 10 seconds
    
    port?: number

    Set which port to use Adds "--port"

    from get-port
    
    replicaMemberConfig?: ReplicaMemberConfig

    Set the Replica-Member-Config Only has a effect when started with "MongoMemoryReplSet"

    replSet?: string

    Set that this instance is part of a replset Adds "--replSet"

    undefined
    
    storageEngine?: StorageEngine

    Set which Storage Engine to use Adds "--storageEngine"

    "ephemeralForTest"