I don't know what the solution is, Please?

*Hi, I have completed this challenge far in advance but it still says “All 5 functional tests are complete and passing.” & “All 16 unit tests are complete and passing.”, I don’t know what the solution is?
~ Siapa Nih

solution: https://metric-imperial-converter-1.siapanih.repl.co

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36 Edg/89.0.774.45.

Challenge: Metric-Imperial Converter

Link to the challenge:

Welcome, siapanih.

Here are some debugging steps I followed:

  1. Pro-tip: Open devtools to look for assertion errors, when running tests:
  2. Look for where that comes from. Happens to come from routes/fcctesting.js:
  let error;
  app.get('/_api/get-tests', cors(), function(req, res, next){
    if(!error && process.env.NODE_ENV === 'test') return next();
    res.json({status: 'unavailable'});

Therefore, there is one of two things happening (or both):
a) There is an error
b) process.env.NODE_ENV is not set to 'test'

Hope this helps

@Sky020 Hello, I have tried many times but still can’t until now
My Solutions

What is currently in your .env file? Replit hides the .env file, by default

I have similar issue: All fcc tests are passing, my app tests are implemented and passing too. The only thing is it’s making wierd output to console as 21 passing and then 0 passing instead of 16 passing and 5 passing
Can you please give any advice how to solve this?

Hi @NikIvan !

Welcome to the forum!

I would suggest creating a new post with your project link and people can assist you there.


1 Like

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