-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwallaby.js
36 lines (31 loc) · 1.14 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
var wallabyWebpack = require('wallaby-webpack');
var webpackConfig = require('./build/webpack.config.dev');
process.env.BABEL_ENV = 'test';
module.exports = function configWallaby(wallaby) {
var webpackPostprocessor = wallabyWebpack(webpackConfig);
return {
files: [
// not required if using PhantomJs2 - http://wallabyjs.com/docs/integration/phantomjs2.html
{ pattern: 'node_modules/phantomjs-polyfill/bind-polyfill.js', instrument: false },
{ pattern: 'node_modules/babel-polyfill/dist/polyfill.js', instrument: false },
{ pattern: 'app/**/*.js', load: false },
{ pattern: 'app/**/*.jsx', load: false },
{ pattern: '!app/**/*spec.js*', load: false },
],
tests: [
{ pattern: 'app/**/*spec.js*', load: false },
],
compilers: {
'**/*.js*': wallaby.compilers.babel(),
},
testFramework: '[email protected]',
postprocessor: webpackPostprocessor,
bootstrap: function bootstrap() {
// var mocha = wallaby.testFramework;
// mocha.ui('bdd');
// window.expect = chai.expect;
// var should = chai.should();
window.__moduleBundler.loadTests();
},
};
};