-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathwallaby.js
38 lines (31 loc) · 817 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
module.exports = () => {
const wallabyWebpack = require('wallaby-webpack');
const wallabyPostprocessor = wallabyWebpack({
entryPatterns: [
'src/main.test.js',
'src/**/*.spec.js'
]
}
);
return {
debug: true,
files: [
{pattern: 'src/main.test.ts', load: false, instrument: false},
{pattern: 'src/polyfill.ts', load: false, instrument: false},
{pattern: 'src/app/**/*.ts', load: false},
{pattern: 'src/app/**/*.spec.ts', ignore: true}
],
tests: [
{pattern: 'src/app/**/*.spec.ts', load: false}
],
testFramework: 'jasmine',
env: {
kind: 'electron',
runner: require('electron')
},
postprocessor: wallabyPostprocessor,
bootstrap: (w) => {
window.__moduleBundler.loadTests();
}
};
};