title: How to detect if a mocha test is running in node.js?
body: <p>I want to make sure that in case the code is running in test mode, that it does not (accidentally) access the wrong database. What is the best way to detect if the code is currently running in test mode?</p>