-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathwallaby.js
More file actions
30 lines (27 loc) · 768 Bytes
/
wallaby.js
File metadata and controls
30 lines (27 loc) · 768 Bytes
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 = (wallaby) => {
return {
files: [
{ pattern: 'src/**/*.jsx', load: true },
{ pattern: 'src/**/__tests__/*.spec.js', ignore: true },
{ pattern: 'src/**/*.js', load: true },
{ pattern: 'src/**/*.less', ignore: true },
{ pattern: 'jest.config.js', load: true },
{ pattern: 'config/*.js', ignore: true },
],
tests: [
'src/**/__tests__/*.spec.js',
],
env: {
type: 'node',
runner: 'node',
},
testFramework: 'jest',
compilers: {
'**/*.js': wallaby.compilers.babel({ babelrc: true }),
'**/*.jsx': wallaby.compilers.babel({ babelrc: true }),
},
setup: (wallaby) => {
wallaby.testFramework.configure(require('./jest.config.js'));
},
};
};