I am writing unit tests using Jest for my backend application and noticed that I kept getting topology error like below:
MongoError: Topology closed