Mongodb global connection

I have been going through the mflix backend code trying to figure out how the Mongodb connection from index.js to Dao was established. The only thing that got me stuck is the use of injectDB. Where is this function coming from, jest? If someone can explain this to me, I will be so greatful.