Tell us what’s happening:
Describe your issue in detail here.
Help please I cannot pass the project because of the exercise and log requirement keeps failing
In your route POST '/api/users/:_id/exercises', you access the _id from the request body. But the _id is only in the request body if the “Add exercises” form is used to make the request. If you fix this, only one, unrelated, test will fail.
!Note: You added your actual mongo connection string inside the code. So everybody who sees this code can now access your database. Which might not seem like a big issue for testing purposes, but should really be avoided. In replit you can add a secret in the Secrets tab which can then be accessed in your code with process.env['secret-key'].