I'll try to update the post and sample code on github soon :)
Thanks for your help. @deejoe79
offered a similar solution in the shutdown function helper.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
thanks for your article it really help me
when jest doesn't finish the execution try to use this in afterAll
afterAll(async () => {
await closeInMongodConnection();
mongoose.disconnect();
mongoose.connection.close();
});
I'll try to update the post and sample code on github soon :)
Thanks for your help.
@deejoe79 offered a similar solution in the shutdown function helper.