diff --git a/package.json b/package.json index f5e8da9..01cee96 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "prod": "set NODE_ENV=production&& npm run build", "postinstall": "npm run build", "start": "node server.js", - "test": "mocha test" + "test": "mocha test", + "test:dev": "nodemon -x mocha test || exit 0" }, "author": "stolksdorf", "license": "MIT", diff --git a/test/test.init.js b/test/test.init.js index 5205f08..4ac4ed0 100644 --- a/test/test.init.js +++ b/test/test.init.js @@ -1,5 +1,6 @@ require('app-module-path').addPath('./server'); + // initialize config const config = require('nconf') .argv()