-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.js
41 lines (35 loc) · 851 Bytes
/
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
module.exports = function(wallaby) {
return {
files: [
{pattern: 'node_modules/babel-polyfill/dist/polyfill.js', instrument: false},
{pattern: 'node_modules/chai/chai.js', instrument: false},
{pattern: 'src/**/*.js'},
{pattern: '!src/**/*-spec.js', load: false},
{pattern: 'test/**/*.js', load: false},
{pattern: '!test/**/*-specs.js', load: false}
],
tests: [
{pattern: 'src/**/*-spec.js'},
{pattern: 'test/**/*-specs.js'}
],
compilers: {
'**/*.js*': wallaby.compilers.babel({
presets: ['env'],
plugins: [
'transform-object-rest-spread'
],
babel: require('babel-core')
})
},
env: {
type: 'node',
runner: 'node'
},
testFramework: 'mocha',
bootstrap: function() {
require('babel-polyfill');
global.expect = chai.expect;
var should = chai.should();
}
};
};