-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby.js
32 lines (30 loc) · 1.05 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
process.env.NODE_ENV = 'test';
var wallabyWebpack = require('wallaby-webpack');
var webpackConfig = require('./webpack.config');
webpackConfig.externals = {
'react': 'React'
};
var wallabyPostprocessor = wallabyWebpack(webpackConfig);
module.exports = function(wallaby) {
return {
files: [
{pattern: 'node_modules/chai/chai.js', instrument: false},
{pattern: 'node_modules/phantomjs-polyfill/bind-polyfill.js', instrument: false},
{pattern: 'node_modules/react/dist/react-with-addons.js', instrument: false},
{pattern: 'src/**/*.js', load: false},
{pattern: 'src/**/*.spec.js', ignore: true},
{pattern: 'src/client/**/*.js', ignore: true}
],
tests: [
{pattern: 'src/**/*.spec.js', load: false}
],
compilers: {
'**/*.js': wallaby.compilers.babel(),
},
postprocessor: wallabyPostprocessor,
setup: function() {
chai.should();
window.__moduleBundler.loadTests();
}
}
};