When I try Migration Test (npm test -t migration), it hangs. Someone please help me
This happened to me too. I tried to figure it out for hours. Finally, I just checked the status page for the key you need to pass the ticket and I got a passing key code.
Thanks Jennifer. I tried, but didn’t get the passing code.
My code was correct
The problem can be because “const mflix = client.db(process.env.MFLIX_NS)” does not understand “process.env.MFLIX_NS” environment variable.
Add “require(“dotenv”).config()” line on top of the page and it should work, if there is not any other errors.