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

    Interface ReplSetOpts

    Replica set specific options.

    interface ReplSetOpts {
        args?: string[];
        auth?: AutomaticAuth;
        configSettings?: MongoMemoryReplSetConfigSettings;
        count?: number;
        dbName?: string;
        dispose?: DisposeOptions;
        ip?: string;
        name?: string;
        spawn?: SpawnOptions;
        storageEngine?: StorageEngine;
    }
    Index

    Properties

    args?: string[]

    additional command line arguments passed to mongod

    []
    

    Enable Authentication

    false
    

    Options for "rsConfig"

    {}
    
    count?: number

    if this number is bigger than "instanceOpts.length", more "generic" servers get started if this number is lower than "instanceOpts.length", no more "generic" servers get started (server count will be "instanceOpts.length")

    1
    
    dbName?: string

    add an database into the uri (in mongodb its the auth database, in mongoose its the default database for models)

    ""
    
    dispose?: DisposeOptions

    Options for automatic dispose for "Explicit Resource Management"

    ip?: string

    bind to all IP addresses specify ::,0.0.0.0

    '127.0.0.1'
    
    name?: string

    replSet name

    'testset'
    
    spawn?: SpawnOptions

    Childprocess spawn options

    {}
    
    storageEngine?: StorageEngine

    mongod storage engine type

    'ephemeralForTest' unless mongodb version is 7.0.0, where its wiredTiger