mikhail-angelov / mongo-unit

MIT License
72 stars 39 forks source link

Allow to start Server as a Replica Set #42

Closed tochoromero closed 2 years ago

tochoromero commented 4 years ago

In order to be able to Unit Test code that makes use of the new MongoDB transaction support, the MongoDB Memory Server needs to be started as a Replica Set.

We need a new useReplicaSet option added to the start function to indicate we want to start the MongoDB Memory Server as a Replica Set.

georgeben commented 2 years ago

I also need this functionality. Please would this be added @mikhail-angelov ? Thank you so much