One of the greatest assets of Jest.js is its ability to run tests concurrently. However, when you are running test suites concurrently it can really wreak havok on your database connection. You are almost always stuck with having to run all your tests concurrently, forcing you to use a non-concurrent testing library like mocha.js. So let’s just dive into my setup for the tests I am running. For th
![Concurrent Testing with Mongoose and Jest](https://cdn-ak-scissors.b.st-hatena.com/image/square/6cd6028b56416d073cbaa5a4f5fb8436b4542794/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fmax%2F668%2F1%2AgxQTVs0VbSRkudETuTWzMg.jpeg)