-
Notifications
You must be signed in to change notification settings - Fork 5
/
wallaby.js
46 lines (41 loc) · 893 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
37
38
39
40
41
42
43
44
45
46
const path = require('path');
module.exports = (wallaby) => {
return {
files: [
'netlify.toml',
'package.json',
'api/src/**/*.ts',
'module/src/**/*.ts',
'api/test/tsconfig.json',
'api/test/**/*.ts',
'api/test/fixtures/**/*',
'!api/test/**/*.spec.ts'
],
tests: [
'api/test/**/*.spec.ts'
],
compilers: {
'**/*.ts?(x)': wallaby.compilers.typeScript({
esModuleInterop: true,
target: 'es2016',
module: 'commonjs',
moduleResolution: "node"
})
},
workers: {
initial: 1,
regular: 1,
restart: true
},
testFramework: 'mocha',
env: {
type: 'node',
params: {
env: [
`NODE_EXTRA_CA_CERTS=${path.join(__dirname, 'api', 'test', 'fixtures', 'test-ca.pem')}`
].join(';')
}
},
debug: true
};
};