2 test cases fail when i run npm test -t db-connection

Hi

when running 'npm test -t db-connection command ', 2 test cases failed with error:-‘Cannot read property ‘title’ of null’ and ‘Can retrieve first page of movies’.Please find screenshot:-

Hi @akshay_81885,

Seems like the import was incomplete. Please restore the data again using the below command:

 mongorestore --drop --gzip --uri mongodb+srv://m220student:m220password@<YOUR_CLUSTER_URI> data

Kanika

1 Like

Hi Kanika,

Thanks once again for your help .The issue resolved.

Best Regards,
Akshay