Quality Assurance Projects - Metric-Imperial Converter

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

hi guys ! so im trying to complete this challenge, but i have no information now on how to improve my tests to pass the fCC tests on my tests. My solution right now looks like this :

Your project link(s)

solution: http://localhost:3000

Your browser information:

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

Challenge: Quality Assurance Projects - Metric-Imperial Converter

Link to the challenge:

Did you follow these two instructions stated in the project?

  • Copy the sample.env file to .env and set the variables appropriately
  • To run the tests uncomment NODE_ENV=test in your .env file

yes i did

When I run it and pass all the tests, I am not seeing that last line showing 0 passing that your screenshot shows.

Also, you will not be able to submit localhost as the project url to complete the project. It must be hosted on a website somewhere.

I can confirm what Mr Dawson is saying, go to replit.com
import your github project, add the secrets correctly, all the tests will pass.

when you do not add the secrets or you add them incorrectly those last tests you are seeing fail will of course fail.

and you will get a status of unavailable and not advance

  app.get('/_api/get-tests', cors(), function(req, res, next){
    console.log('requested');
    if(process.env.NODE_ENV === 'test') return next();
    res.json({status: 'unavailable'});
  },

enter your secrets as so using this tab on the left:

you can test this yourself by misspelling the secret if you like:

oh ok guys, thats awesome ! trying it now ! thank you so much

that worked smoothly ! thanks guys