阅读背景:

如何检测mocha测试是否在node.js中运行?

来源:互联网 

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?I want to make sure that in case the code is ru




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: