-
Notifications
You must be signed in to change notification settings - Fork 3
/
wallaby.js
36 lines (28 loc) · 760 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
/* eslint strict:off, global-require:off */
'use strict';
module.exports = wallaby => {
return {
files: [
'src/**/*.js',
'src/**/*.snap',
'jest.config.js',
'.env',
'!src/**/*.test.js',
],
tests: ['src/**/*.test.js'],
compilers: {
'**/*.js': wallaby.compilers.babel(),
},
env: {
type: 'node',
runner: 'node',
},
testFramework: 'jest',
// https://github.com/wallabyjs/public/issues/465
workers: { initial: 1, regular: 1 },
setup: w => {
const jestConfig = require('./jest.config');
w.testFramework.configure(jestConfig);
},
};
};