When submitting solution link from local host, my app passes all the tests. Problem starts when I’m submitting app from Replit. I cant pass the unit and functional tests with error:
[Error: expected { status: 'unavailable' } to be an array]
When submitting solution link from local host, my app passes all the tests. Problem starts when I’m submitting app from Replit. I cant pass the unit and functional tests with error:
[Error: expected { status: 'unavailable' } to be an array]
Not sure why, but you have changed 'test'
to 'tests'
in server.js
if (process.env['NODE_ENV']==='tests')
But the requirements says to add test
to the NODE_ENV environment variable.
If I put it back to 'test'
in server.js and add the required environment variable test
the project passes.
Thank you brother for looking into it!!
yes it does state that in requirements. I was typing it from memory
Many thanks