Run MochaJS before start node server automated
<p>I am new to Mocha.js, but I did some test cases and I would like to run these tests before my server starts automatically.</p>

<p>For example:
npm start
Then all Mocha's tests run and if it passes the server starts, if not the server stops.</p>

<p>I am using Jenkins for automated deploy</p>