Mongoose Connection Not Available in Jest Tests After Using Global Setup and Teardown
I’m setting up a MongoDB container for my Jest tests using the testcontainers library and Mongoose. However, I’m encountering an issue where the MongoDB connection established in the global setup file is not available in my Jest tests.