We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dcefdc commit 5f3785cCopy full SHA for 5f3785c
lib/API/Keymetrics/cli-api.js
@@ -54,11 +54,13 @@ module.exports = function(CLI) {
54
CLI.prototype.monitorState = function(state, target, cb) {
55
var that = this;
56
57
- try {
58
- fs.statSync(this._conf.INTERACTION_CONF);
59
- } catch(e) {
60
- printMotd();
61
- return registerPrompt();
+ if (process.env.NODE_ENV !== 'test') {
+ try {
+ fs.statSync(this._conf.INTERACTION_CONF);
+ } catch(e) {
+ printMotd();
62
+ return registerPrompt();
63
+ }
64
}
65
66
if (!target) {
test/interface/monitor.mocha.js
@@ -1,5 +1,7 @@
1
/* eslint-env mocha */
2
3
+process.env.NODE_ENV='test';
4
+
5
'use strict';
6
7
var pm2 = require('../../index.js');
0 commit comments