Skip to content

Commit 1c91686

Browse files
committed
refactor(gen:test): move DEBUG var to mocha.conf.js
1 parent 3310a1c commit 1c91686

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

gulpfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ const mocha = lazypipe()
2424
timeout: 120000,
2525
globals: {
2626
should: require('should')
27-
}
27+
},
28+
require: [
29+
'./mocha.conf'
30+
]
2831
});
2932

3033
const transpile = lazypipe()

mocha.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
3+
global.DEBUG = !!process.env.DEBUG;

src/test/main.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ const defaultOptions = {
2626
oauth: [],
2727
socketio: true
2828
};
29-
// var DEBUG = true;
30-
var DEBUG = false;
3129
const TEST_DIR = __dirname;
3230

3331
function copyAsync(src, dest) {

0 commit comments

Comments
 (0)