-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwallaby.js
45 lines (38 loc) · 1.01 KB
/
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
42
43
44
45
/* eslint-disable */
process.env.BABEL_ENV = 'test';
module.exports = function(wallaby) {
return {
files: [
{pattern: 'src/**/__tests__/**/*.test.js', ignore: true},
{pattern: 'src/**/__tests__/**/*.tests.js', ignore: true},
'src/**/*.js',
'src/**/*.jsx',
'src/**/*.css',
'src/**/*.gif',
'src/**/*.png',
'src/**/*.jpg',
'src/**/*.svg',
'src/**/*.pdf',
'src/**/*.html',
],
tests: ['src/**/__tests__/**/*.test.js', 'src/**/__tests__/**/*.tests.js'],
env: {
type: 'node',
runner: 'node',
},
workers: {
recycle: true,
},
compilers: {
'**/*.js': wallaby.compilers.babel(),
},
testFramework: 'jest',
// bootstrap: function(wallaby) {
// var path = require('path');
// process.env.NODE_ENV = 'test';
// process.env.NODE_PATH = path.join(wallaby.projectCacheDir, 'src');
// require('module').Module._initPaths();
// // require('utils/test/require-hooks');
// },
};
};