I am using mongodb-memory-server to test code, which interacts with a Mongo database.
As my test runner I use Jasmine.
Running my test with ts-node node_modu
ts-node node_modu