forked from wallabyjs/wallaby-node-iojs-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby.js
51 lines (43 loc) · 1.28 KB
/
wallaby.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = function () {
return {
files: [
'lib/**/*.js'
],
tests: [
'test/**/*Spec.js'
],
testFramework: '[email protected]',
workers: {
initial: 1,
regular: 1,
recycle: true
},
delays: {
edit: 500,
run: 150
},
setup: function () {
var winston = require('winston');
if (!winston.transports.ConsoleLogger) {
var ConsoleLogger = winston.transports.ConsoleLogger = function (options) {
this.level = 'verbose';
};
require('util').inherits(ConsoleLogger, winston.Transport);
ConsoleLogger.prototype.log = function (level, msg, meta, callback) {
console.log(msg);
callback(null, true);
};
winston.remove(winston.transports.Console);
winston.add(winston.transports.ConsoleLogger);
winston.add = winston.remove = function () {
};
}
},
debug: true,
env: {
// use 'node' type to use node.js
type: 'node',
runner: 'node'
}
};
};