Create a Sqlite DB for development
$ sqlite3
sqlite> create table test.dbInstall and run
$ npm install
$ npm startCurrently to make sure that your tests doesn’t listen “twice” from the server.js a check is done
if (!module.parent) {
app.listen(port);
}Another options is using Nodemon, as a npm package script:
"test": "nodemon --exec \"mocha --recursive\""