Not able to pass 2 tests in Metric-Imperial Converter

I’m not able to pass 2 test in Metric-Imperial Converter

  • All 16 unit tests are complete and passing.
  • All 5 functional tests are complete and passing.

Challenge: Metric-Imperial Converter

Would have been nice if there was an error message. But you probably forgot this:

Copy the sample.env file to .env and set the variables appropriately

If you don’t set NODE_ENV to test, it will not work. In case of Replit, you cannot create a .env file, but you can set environment variables in the tab called Secrets.

3 Likes

Thanks, it worked. But they could have mentioned this in the docs.

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