Getting "RangeError: Maximum call stack size exceeded" when unit testing with mongodb-memory-server
I am trying to unit test some typescript logic with jest. I am using mongoose in order to interact with the mongo database and mongo-memory-server in order to mock mongodb. For unclear reason, I get the following error, which seems…