forked from regentmarkets-repo-archive/binary-next-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.conf.js
38 lines (36 loc) · 859 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
// require('babel-polyfill');
// require('babel-plugin-transform-regenerator');
console.log(global);
console.log(global.regeneratorRuntime);
module.exports = wallaby => ({
files: [{
pattern: 'src/**/*.js*',
load: false,
}, {
pattern: 'src/**/__tests__/*.js',
ignore: true,
}],
tests: [
'./src/*/__tests__/*.js',
'./src/*/*/__tests__/*.js',
],
env: {
type: 'node',
},
testFramework: 'mocha',
bootstrap: () => {
global.regeneratorRuntime = global.regeneratorRuntime
},
compilers: {
'**/*.js': wallaby.compilers.babel({
presets: [
'react',
'es2015',
'stage-1',
],
plugins: [
'transform-decorators-legacy',
],
}),
},
});