-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathwallaby.js
32 lines (32 loc) · 873 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
module.exports = function(wallaby) {
return {
files: [
'package.json',
{ pattern: 'jest.config.js', load: true },
{ pattern: 'src/**/*.ts?(x)', load: true },
{ pattern: 'src/**/*.js?(x)', load: true },
{ pattern: 'src/**/*.test.js?(x)', ignore: true },
{ pattern: 'src/**/*.test.ts?(x)', ignore: true }
],
tests: [
{ pattern: 'src/**/*.ts?(x)', load: true },
{ pattern: 'src/**/*.js?(x)', load: true }
],
hints: {
ignoreCoverage: /istanbul ignore/
},
env: {
type: 'node',
runner: 'node'
},
compilers: {
'**/*.js?(x)': wallaby.compilers.babel(),
'**/*.ts?(x)': wallaby.compilers.babel()
},
testFramework: 'jest',
setup: w => {
const jestConfig = require('./jest.config.js');
wallaby.testFramework.configure(jestConfig);
}
};
};