We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7328c9 commit 65467b0Copy full SHA for 65467b0
packages/mongodb-memory-server-core/src/MongoMemoryServer.ts
@@ -98,7 +98,7 @@ export default class MongoMemoryServer {
98
.catch((err) => {
99
if (err.message === 'Mongod shutting down' || err === 'Mongod shutting down') {
100
log(`Mongodb did not start. Trying to start on another port one more time...`);
101
- if (this.opts.instance && this.opts.instance.port) {
+ if (this.opts.instance?.port) {
102
this.opts.instance.port = null;
103
}
104
return this._startUpInstance();
0 commit comments