forked from davidkpiano/react-redux-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.config.js
49 lines (41 loc) · 956 Bytes
/
wallaby.config.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
46
47
48
49
/* eslint strict:0 */
'use strict';
const fs = require('fs');
const path = require('path');
const babelConfigFile = path.resolve(process.cwd(), '.babelrc');
let babelConfig;
try {
fs.accessSync(babelConfigFile, fs.R_OK);
} catch (error) {
throw error;
}
try {
babelConfig = JSON.parse(fs.readFileSync(babelConfigFile));
} catch (error) {
throw error;
}
module.exports = wallaby => ({
files: [
{ pattern: 'src/**/*.js', load: false },
{ pattern: 'test/*-spec.js', ignore: true },
'test/spec-setup.js',
],
tests: [
'test/*-spec.js',
],
compilers: {
'**/*.js': wallaby.compilers.babel(babelConfig),
},
env: {
type: 'node',
runner: 'node',
},
/**
* This might be slow. Alternative: http://wallabyjs.com/docs/integration/node.html
* Search for 'resetting node modules cache'
*/
workers: { recycle: true },
bootstrap: function bootstrap() {
require('./test/spec-setup.js');
},
});