-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstryker.conf.js
66 lines (65 loc) · 2.33 KB
/
stryker.conf.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// const webpack = require('webpack');
// const Path = require('path');
module.exports = function(config) {
config.set({
files: [
{ pattern: 'build/source/spec.module.js', mutated: false, included: true },
{ pattern: 'build/source/**/*.component.js', mutated: true, included: false },
// { pattern: 'build/source/**/!(*.spec|main|spec.module).js', mutated: true, included: false }, ERROR [karma]: { Error: socket hang up
{ pattern: 'build/source/**/*.{js,scss,html,json}', included: false, mutated: false },
],
testRunner: 'karma',
testFramework: 'jasmine',
coverageAnalysis: 'perTest',
reporter: ['progress', 'html'],
htmlReporter: {
baseDir: '.testresults/mutation'
},
// logLevel: 'trace',
// maxConcurrentTestRunners: 1,
clearTextReporter: {
maxTestsToLog: 0
},
karmaConfig: {
proxies: {
'/i18n/': '/base/build/source/i18n/',
},
preprocessors: {
'**/spec.module.js': ['webpack'],
},
browsers: ['Nightmare'],
webpack: {
module: {
exprContextCritical: false,
rules: [
{
test: /\.component\.html$/,
use: ['raw-loader'],
},
{
test: /\.component\.scss$/,
use: ['raw-loader', 'sass-loader'],
},
{
test: /\.component\.[tj]s$/,
use: ['angular2-template-loader'],
}
]
},
// plugins: [
// new webpack.DllReferencePlugin({
// context: context,
// manifest: require(libs)
// })
// ]
},
webpackMiddleware: {
stats: 'errors-only'
},
},
// karmaConfigFile: 'karma.conf.ts' // <-- add your karma.conf.js file here
// mutate: [
// 'src/**/*.js' // <-- mark files for mutation here
// ]
});
}