-
Notifications
You must be signed in to change notification settings - Fork 2
/
.wallaby.js
36 lines (35 loc) · 810 Bytes
/
.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
var babel = require('babel');
module.exports = function (wallaby) {
return {
files: [
'src/*.js',
'src/**/*.js',
'test/_resources/*',
'test/*.js',
'node_modules/node-red/*.js',
'node_modules/node-red/**/*.js',
'node_modules/node-red/*.json',
'node_modules/node-red/**/*.json',
'!node_modules/**/test/*.js',
'!node_modules/**/test/**/*.js'
],
tests: [
'test/spec/*.test.js',
'!test/spec/*.server.test.js'
],
testFramework: 'mocha',
debug: false,
compilers: {
'src/*.js': wallaby.compilers.babel({ babel: babel, stage: 1 }),
'src/**/*.js': wallaby.compilers.babel({ babel: babel, stage: 1 }),
'test/spec/*.js': wallaby.compilers.babel({ babel: babel, stage: 1 })
},
env: {
type: 'node'
},
workers: {
initial: 1,
regular: 1
}
};
};