Unit / functional tests (Sudoku Solver)

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.

1 Like

Thank you brother for looking into it!!

yes it does state that in requirements. I was typing it from memory :person_facepalming:

Many thanks