in the challenge >Stock Price Checker< the tests seem to fail always, even if the actual tests in app succeeds, is there any one who managed to get them to work, any help would be appreciate
than you for your response, yes the NODE_ENV is set to ‘test’ to satisfy
if(process.env.NODE_ENV===‘test’) but my procees.env variables seem to be all Undefined so i forced the if statement if(process.env.NODE_ENV===‘test’ || true) this way i execute all the tests, results:
Listening on port undefined
Running Tests…
yes sample.env
PORT=
DB = # here goes the mongo conection string from atlas
NODE_ENV=test
thank you again.
ps there is always require(‘dotenv’).config(); at the top