-
Notifications
You must be signed in to change notification settings - Fork 2
/
wallaby.config.js
42 lines (41 loc) · 1021 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const babel = require('@shelf/babel-config/backend');
module.exports = wallaby => {
return {
testFramework: 'jest',
files: [
'package.json',
'src/**/*.ts',
'src/**/*.js',
'src/**/*.json',
'src/package.json',
'!src/**/*.test.ts',
'!src/**/*.es.ts',
'!src/**/*.integration.ts',
],
tests: ['src/**/*.test.ts', '!src/**/*.es.test.ts', '!src/**/*.integration.test.ts'],
env: {
type: 'node',
runner: 'node',
params: {
env: 'TZ=UTC',
},
},
compilers: {
'src/**/*.js': wallaby.compilers.babel(),
'**/*.ts?(x)': wallaby.compilers.typeScript(),
},
preprocessors: {
'**/*.js': file =>
require('@babel/core').transform(file.content, {
sourceMap: true,
compact: false,
filename: file.path,
...babel,
}),
},
setup(w) {
w.testFramework.configure({});
},
};
};