-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwallaby.js
44 lines (42 loc) · 1.23 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
var wallabyWebpack = require('wallaby-webpack');
var webpackConfig = require('./config/webpack.wallaby');
var webpackPostprocessor = wallabyWebpack(webpackConfig());
module.exports = function () {
return {
files: [
{
pattern: "node_modules/jquery/dist/jquery.min.js",
instrument: false
},
{
pattern: "node_modules/underscore/underscore-min.js",
instrument: false
},
{
pattern: "node_modules/backbone/backbone-min.js",
instrument: false
},
{
pattern: "node_modules/backgrid/lib/backgrid.js",
instrument: false
},
{
pattern: "src/*.js",
load: false
}
],
tests: [
{
pattern: 'test/*.js',
load: false
}
],
//debug: true,
postprocessor: webpackPostprocessor,
bootstrap: function () {
window.wallabyEnv = true;
// Backgrid/jquery etc are available here if a console.log is used.
window.__moduleBundler.loadTests();
}
}
};