mirror of
https://github.com/hanzoai/mongodb-memory-server.git
synced 2026-09-24 17:00:24 +00:00
1.2 KiB
1.2 KiB
id, title
| id | title |
|---|---|
| mongo-memory-server-opts | MongoMemoryServerOpts |
API Documentation of MongoMemoryServerOpts-Interface
Values
instance
Typings: instance?: MemoryServerInstanceOpts & ExtraOptions
Set custom options based on MongoMemoryInstanceOpts, but ignores some properties:
authis 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.