Tell us what’s happening:
Describe your issue in detail here.
The requirement “When you visit /api/shorturl/<short_url> , you will be redirected to the original URL” is not passing the tests but if I try it in the heroku app it works fine.
I’m not sure if it can be because of the regex i’m using to validate the url string.
That short_url property is what the tests then use to GET the URL for redirection, not suffix, for which your GET route searches. So I assume the Url.findOne({suffix: ...}) fails when it tries to find a document with a suffix field matching something like /api/shorturl/21 (with 21 just being whatever shortId generated earlier) that was short_url from the POST route. Log the route inputs and ouputs for all your routes to ensure everything is doing what you think it’s doing.