forked from particl/particl-market
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.js
40 lines (32 loc) · 1002 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
module.exports = (wallaby) => {
process.env.NODE_ENV = 'test';
// View test statistics (for locally running wallaby): http://wallabyjs.com/app/#/tests
return {
files: [
'tsconfig.json',
'src/**/*.ts',
'test/lib/**/*.ts',
'src/**/*.json',
],
tests: ['test/unit/**/*.test.ts'],
env: {
type: 'node',
runner: 'node',
},
testFramework: 'jest',
// setup(wallaby) {
// wallaby.testFramework.configure(require('./package.json').jest);
// },
compilers: {
'**/*.ts': wallaby.compilers.typeScript({ module: 'commonjs' })
}
// // If you want to do database testing with async calls then
// // you have to set this options, so that wallaby uses only
// // one worker
// workers: {
// recycle: true,
// initial: 1,
// regular: 1
// }
};
};