Hello, i have an problem with my tests units.
I wan't to develop unit tests to my project, and it don't work.
I h've adding mongoDB, and now, tests units don't pass.
I look some forums and i don't found the solution.
Il my new service spec.ts, it work when i'hve only one "it", but if i have 2: "it", the code lock, afterAll timeout (5 seconds / 20 seconds, is the same), and jest say me:
Jest did not exit one second after the test run has completed.
'This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.```
My Test:
https://github.com/ScyLabs/auth.service.spec.ts/blob/main/auth.service.spec.ts