Jest did not exit one second after the test run has complited

hi everyone,

maybe this course is a bit too much for me, i think i need to know better js and maybe mongoDB, but i would like to try anyway to see what i can reach.

Running tests i get this message from Jest:

Jest did not exit one second after the test run has complited

it then says:

This usually means that there are asynchronous operation that weren't stopped in your tests

I tried to run them with ‘–detectOpenHandles’ but the output is the same.

the command i use is simply

npm test -t mongoclient

thank you and sorry for my ignorance

Giulio

P.S. the test pass anyway

Most likely the connection string specified in the configuration file is wrong.

Could you share the connection string you entered?

the one in the .env?

mongodb+srv://m220student:m220password@mflix-7cj4j.mongodb.net/test?retryWrites=true&w=majority