forked from tjoskar/ng-lazyload-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby.js
49 lines (39 loc) · 1.21 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
const path = require('path');
const wallabyWebpack = require('wallaby-webpack');
const webpackPostprocessor = wallabyWebpack({
entryPatterns: [
'unit-test.bundle.js',
'test/helpers/test-helper.js',
'test/**/*.test.js'
],
module: {
loaders: [
{test: /unit-test\.karma\.bundle\.js/, loader: 'null'}
]
},
devtool: 'source-map'
});
module.exports = () => {
return {
files: [
{pattern: 'test/helpers/test-helper.ts', load: false, instrument: false},
{pattern: 'unit-test.bundle.js', load: false, instrument: false},
{pattern: 'unit-test.karma.bundle.js', load: false, instrument: false},
{pattern: 'src/**/*.ts', load: false},
{pattern: 'test/helpers/**/*.ts', load: false, instrument: false},
{pattern: 'test/**/*.test.ts', ignore: true}
],
tests: [
{pattern: 'test/**/*test.ts', load: false}
],
env: {
kind: 'electron'
},
testFramework: 'mocha',
postprocessor: webpackPostprocessor,
setup: function() {
window.__moduleBundler.loadTests();
},
debug: true
};
};