forked from klaviyo/react-frame-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.conf.js
40 lines (38 loc) · 974 Bytes
/
wallaby.conf.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
const wallabyWebpack = require('wallaby-webpack'); // eslint-disable-line import/no-extraneous-dependencies
module.exports = function configure(wallaby) {
const wallabyPostprocessor = wallabyWebpack({
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
noParse: [
/node_modules\/sinon/
],
loaders: [
{ test: /\.json$/, loader: 'json-loader' }
]
}
});
return {
debug: true,
files: [
{ pattern: 'src/**/*.js*', load: false },
{ pattern: 'app/reducers/**/*.js*', load: false },
{ pattern: 'app/components/**/*.js*', load: false }
],
tests: [
{ pattern: 'test/**/*.spec.js*', load: false }
],
compilers: {
'**/*.js?(x)': wallaby.compilers.babel()
},
postprocessor: wallabyPostprocessor,
testFramework: 'mocha',
env: {
kind: 'electron'
},
setup: function setup() {
window.__moduleBundler.loadTests();
}
};
};