You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-3
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ All options are optional.
117
117
118
118
```js
119
119
constmongod=newMongoMemoryServer({
120
-
instance: {
120
+
instance?: {
121
121
port?: number, // by default choose any free port
122
122
ip?: string, // by default '127.0.0.1', for binding to all IP addresses set it to `::,0.0.0.0`,
123
123
dbName?: string, // by default '' (empty string)
@@ -127,14 +127,36 @@ const mongod = new MongoMemoryServer({
127
127
auth?: boolean, // by default `mongod` is started with '--noauth', start `mongod` with '--auth'
128
128
args?: string[], // by default no additional arguments, any additional command line arguments for `mongod` `mongod` (ex. ['--notablescan'])
129
129
},
130
-
binary: {
130
+
binary?: {
131
131
version?: string, // by default '5.0.19'
132
132
downloadDir?: string, // see the documentation on what is chosen by default https://nodkz.github.io/mongodb-memory-server/docs/api/config-options#download_dir
133
133
platform?: string, // by default os.platform()
134
134
arch?: string, // by default os.arch()
135
135
checkMD5?: boolean, // by default false OR process.env.MONGOMS_MD5_CHECK
136
136
systemBinary?: string, // by default undefined or process.env.MONGOMS_SYSTEM_BINARY
0 commit comments