forked from mantrajs/meteor-mantra-kickstarter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.js
32 lines (31 loc) · 792 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
module.exports = function (wallaby) {
// There is a weird error with the mui and mantra.
// See: https://goo.gl/cLH8ib
// Using require here seems to be the error.
// Renaming it into `load` just fixed the issue.
var load = require;
return {
files: [
'client/modules/**/components/*.js',
'client/modules/**/actions/*.js',
'client/modules/**/containers/*.js',
'client/modules/**/libs/*.js'
],
tests: [
'client/**/tests/*.js'
],
compilers: {
'**/*.js*': wallaby.compilers.babel({
babel: load('babel-core'),
presets: ['es2015', 'stage-2', 'react']
})
},
env: {
type: 'node'
},
testFramework: 'mocha',
setup: function() {
global.React = require('react');
}
};
};