// running tests
All 16 unit tests are complete and passing.
All 5 functional tests are complete and passing.
// tests completed
// console output
[Error: expected { status: 'unavailable' } to be an array]
[Error: expected { status: 'unavailable' } to be an array]
Did you add the NODE_ENV=test environment variable? On Replit the key is NODE_ENV and test is the value (using the Secrets).
It will most likely crash the server and you have to restart it again. At the bottom of the “Functional Tests” (after the tests but still inside the callback) you can add an after function.