-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathwallaby.js
33 lines (31 loc) · 824 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
var babel = require('babel');
var wallabyWebpack = require('wallaby-webpack');
var webpack = require('webpack');
var wallabyPostprocessor = wallabyWebpack({
plugins: [
new webpack.optimize.OccurenceOrderPlugin()
]
}
);
module.exports = function (wallaby) {
return {
files: [
{pattern: 'node_modules/phantomjs-polyfill/bind-polyfill.js', instrument: false },
{pattern: 'node_modules/babel-core/browser-polyfill.js', instrument: false },
{pattern: 'src/**/*.es6.js', load: false},
{pattern: 'test/helpers.es6.js', load: false}
],
tests: [
{pattern: 'test/**/*-spec.es6.js', load: false}
],
compilers: {
'**/*.es6.js': wallaby.compilers.babel({
babel: babel
})
},
postprocessor: wallabyPostprocessor,
bootstrap: function () {
window.__moduleBundler.loadTests()
}
};
};