-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwallaby.js
45 lines (43 loc) · 1004 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
// const transform = require("fuse-test-runner").wallabyFuseTestLoader;
const path = require('path');
const jsxtransform = require('jsx-controls-loader').loader;
module.exports = function(wallaby) {
// var load = require;
return {
files: [
'src/**/*.ts*',
'!src/**/*.test.tsx',
'!src/**/*.test.ts',
'!src/**/*.d.ts*'
],
// debug: true,
tests: [
'src/**/*.test.ts',
'src/**/*.test.tsx'
],
compilers: {
'**/*.ts?(x)': wallaby.compilers.typeScript({ jsx: 'react', module: 'commonjs' })
},
env: {
type: 'node'
// runner: '/usr/local/bin/node'
},
workers: {
initial: 1,
regular: 1
},
/* parallelism may break some tests due to db consistency */
// workers: {
// initial: 1,
// regular: 1,
// recycle: true
// },
delays: {
run: 200
},
testFramework: 'mocha',
setup: function(wallaby) {
require('wafl').setup({ wallaby });
}
};
};