forked from lathonez/clicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.js
46 lines (37 loc) · 1018 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
var wallabyWebpack = require('wallaby-webpack');
var webpackPostprocessor = wallabyWebpack({
entryPatterns: [
'src/wallabyTest.js',
'src/**/*.spec.js'
],
module: {
loaders: [
{test: /\.html$/, loader: 'html-loader'},
{test: /\.js$/, loader: 'angular2-template-loader', exclude: /node_modules/},
{test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/, loader: 'null-loader'}
]
}
});
module.exports = function (wallaby) {
return {
files: [
{pattern: 'src/**/*.ts', load: false},
{pattern: 'src/**/*.d.ts', ignore: true},
{pattern: 'src/**/*.html', load: false},
{pattern: 'src/**/*.spec.ts', ignore: true}
],
tests: [
{pattern: 'src/**/*.spec.ts', load: false}
],
testFramework: 'jasmine',
env: {
kind: 'electron'
},
postprocessor: webpackPostprocessor,
setup: function () {
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
window.__moduleBundler.loadTests();
},
debug: true
};
};