You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
All the tests should ideally work with any server setup as long as Mongoose is connected, and it's quite a black box right now how the server is started and then mocha tests are run. It would be better to move tests toward a generic http.createServer system.
The text was updated successfully, but these errors were encountered:
Or use connect, which also is much more barebones than Express. The main issue is that you can't just start the server and run the tests, because the tests won't exit until the server has quit, and that won't happen easily with the current setup...
@ilanbiala I understand the problem you're raising and its definitely something that needs resolving, but creating a server through http.createServer() isn't a solution because server.js does more than just start the server, it binds expressjs, loads all the models, controllers, routes, instantiates the configuration etc.
Do you have a suggestion how to actually do it better?
All the tests should ideally work with any server setup as long as Mongoose is connected, and it's quite a black box right now how the server is started and then mocha tests are run. It would be better to move tests toward a generic http.createServer system.
The text was updated successfully, but these errors were encountered: