forked from valor-software/ngx-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.js
43 lines (35 loc) · 1005 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
'use strict';
const wallabyWebpack = require('wallaby-webpack');
const webpackPostprocessor = wallabyWebpack({
entryPatterns: [
'spec-bundle.js',
'components/**/*spec.js'
],
module: {
loaders: [
{test: /\.css$/, loader: 'raw-loader'},
{test: /\.html$/, loader: 'raw-loader'}
]
}
});
module.exports = function conifg() {
return {
files: [
{pattern: 'spec-bundle.js', load: false},
{pattern: 'components/**/*.ts', load: false},
{pattern: 'components/**/*.css', load: false},
{pattern: 'components/**/*.html', load: false},
'!components/**/*.spec.ts'
],
tests: [
{pattern: 'components/**/*.spec.ts', load: false}
],
testFramework: 'jasmine',
env: {
runner: require('phantomjs-prebuilt').path, // eslint-disable-line
params: {runner: '--web-security=false'}
},
postprocessor: webpackPostprocessor,
setup: () => window.__moduleBundler.loadTests() // eslint-disable-line
};
};