Migration Ticket Test Fails

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 :frowning:

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.

1 Like

Hi @lythe123,

Did you check the error messages? Also, check all the things @Yervand_01187 mentioned.

Kanika