-
Notifications
You must be signed in to change notification settings - Fork 2
/
wallaby.js
30 lines (29 loc) · 874 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
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: [
'src/client/modules/**/components/*.tsx',
'src/client/modules/**/actions/*.ts',
'src/client/modules/**/containers/*.ts', 'client/modules/**/libs/*.ts'
],
tests: [ 'src/client/**/tests/*.js' ],
compilers: {
'**/*.js*': wallaby.compilers.babel({
babel: load('babel-core'),
presets: [ 'es2015', 'stage-2', 'react' ]
}),
'**/*.ts*': wallaby.compilers.typeScript({module: "commonjs", jsx: "react"})
},
env: {
type: 'node'
},
testFramework: 'mocha',
setup: function() {
global.React = require('react');
}
};
};