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.
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 thestart
function to indicate we want to start the MongoDB Memory Server as a Replica Set.