Personal library: functional tests pass locally, but fail on heroku

Tell us what’s happening:
Describe your issue in detail here.

This must be a cors issue, but the cors is set in server.js

Your project link(s)

githubLink: GitHub - danmikes/dm-lib: A boilerplate for a freeCodeCamp project.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.115 Safari/537.36

Challenge: Personal Library

Link to the challenge:

It’s not cors. It appears one of the tests from the functional tests is failing.

1 Like

How do you know? And why do all tests pass on when I submit via localhost? Is there a way for me to see which test fails. I can’t find anything in the log that hints to this.

Thank you for the suggestion. When I removed the example test, it passed.

I believe tests output should be written in the console just after the server is started. Test from project page is checking _api/get-tests route to get status of tests.

I am not sure what you mean by that. Could you be a bit more specific, so that I know where to look? Maybe that could help me to find the mistake in my other project?

The background code makes available, on certain route, results from the functional tests. This route is checked when fCC determines whether functional tests are passing. For your Issue Tracker that route is:

Wow, thank you! I fixed the other project also.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.