-
Notifications
You must be signed in to change notification settings - Fork 20
/
wallaby.js
38 lines (29 loc) · 710 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
/*eslint-disable*/
'use strict';
const babelOptions = {presets: ['react-native']};
process.env.wallabyScriptDir = __dirname;
module.exports = function(wallaby) {
return {
env: {
type: 'node'
},
testFramework: 'jasmine',
files: [
{pattern: `node_modules/jasmine-expect/**/*.*`, instrument: false, load: false},
'dist/**/*.js',
'src/**/*.js',
'test/**/*.js',
'!test/**/*.[Ss]pec.js'
],
tests: [
'test/**/*.[Ss]pec.js'
],
compilers: {
'**/*.js': wallaby.compilers.babel(babelOptions)
},
setup: function(w) {
require('babel-polyfill');
require('app-root-path').setPath(w.projectCacheDir);
}
};
};