-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.js
51 lines (47 loc) · 1.38 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* eslint-disable @typescript-eslint/no-var-requires */
module.exports = w => {
return {
compilers: {
'**/*.ts': w.compilers.typeScript({
experimentalDecorators: true,
emitDecoratorMetadata: true,
isolatedModules: true,
tsconfig: false
})
},
env: {
type: 'node',
runner: 'node'
},
files: [
'tsconfig.json',
'src/authorizers/*.ts',
'src/helpers/*.ts',
'src/i18n/*.ts',
'src/routes/*.ts',
'src/services/*.ts',
'src/streams/*.ts',
'src/tasks/*.ts',
'src/entities/*/*.ts',
'src/helpers/*/*.ts'
],
setup: () => {
if (global._tsconfigPathsRegistered) return;
const tsConfigPaths = require('tsconfig-paths');
const tsconfig = require('./tsconfig.json')
tsConfigPaths.register({
baseUrl: tsconfig.compilerOptions.baseUrl,
paths: tsconfig.compilerOptions.paths
});
global._tsconfigPathsRegistered = true;
},
tests: [
'__tests__/**/*.integration.ts',
'__tests__/**/*.spec.ts'
],
testFramework: 'mocha',
workers: {
recycle: true
}
}
}