-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.js
executable file
·39 lines (33 loc) · 932 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
37
38
39
/* eslint-disable no-var, no-shadow, dot-notation */
var wallabyWebpack = require('wallaby-webpack');
var wallabyPostprocessor = wallabyWebpack({
module: {
loaders: [
{ test: /\.js$/, loader: 'babel', exclude: /node_modules/, query: { presets: ['es2015-loose', 'stage-1'], plugins: ['transform-decorators-legacy'] } },
]
},
});
module.exports = function(wallaby) {
return {
files: [
{ pattern: 'src/**/*.js', load: false },
{ pattern: 'test/unit/setup.js', load: false }
],
tests: [
{ pattern: 'test/unit/**/*.spec.js', load: false }
],
compilers: {
'src/**/*.js': wallaby.compilers.babel({
presets: [ 'es2015-loose', 'stage-1'],
plugins: [
'transform-decorators-legacy'
]
})
},
postprocessor: wallabyPostprocessor,
setup: function() {
window.__moduleBundler.loadTests();
},
debug: false
};
};