0

I'm using Japa to create a Unit test for my adonis 5 projects,

Somehow when I try to run my unit test in my local environment(Mac Os) without mongodb, my unit test was running well, and it was ignoring the connection error. But when I try to run it on my Ubuntu server, it can't ignore the connection error.

Here is my code:

enter image description here

I have tried to add a try-catch block at create a connection, but it didn't work. Why there is some differences between my Mac Os and Ubuntu. Can I test it without MongoDB?

0 Answers0