MongoMemoryServerOpts
API Documentation of MongoMemoryServerOpts
-Interface
Values
instance
Typings: instance?: MemoryServerInstanceOpts & ExtraOptions
Set custom options based on MongoMemoryInstanceOpts
, but ignores some properties:
auth
is ignored because it is set via auth property.
Extra options specific to MongoMemoryServer
class:
portGeneration
: enable / disable port generation, enabled by default.
binary
Typings: binary?: MongoBinaryOpts
Set custom options for finding the binary, uses MongoBinaryOpts
.
spawn
Typings: spawn?: SpawnOptions
Set custom spawn options for spawning processes, uses SpawnOptions
auth
Typings: auth?: AutomaticAuth
Set custom Authentication options for the instance, uses AutomaticAuth
.
dispose
Typings: dispose?: DisposeOptions
Set custom behavior for when [Symbol.asyncDispose]
is called, uses DisposeOptions
.