-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
60 lines (46 loc) · 1.25 KB
/
karma.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
var webpackConfig = require('./webpack.test.js');
module.exports = function(config) {
config.set({
basePath: '.',
frameworks: ['jasmine'],
files: [
// paths loaded by Karma
{pattern: './karma-test-shim.js', watched: false}
],
preprocessors: {
'./karma-test-shim.js': ['webpack', 'sourcemap']
},
webpack: webpackConfig,
webpackMiddleware: {
stats: 'errors-only'
},
webpackServer: {
noInfo: true
},
port: 9876,
logLevel: config.LOG_INFO,
colors: true,
autoWatch: false,
browsers: ['Chrome_nosandbox'],
customLaunchers: {
Chrome_nosandbox: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Karma plugins loaded
plugins: [
'karma-jasmine',
'karma-junit-reporter',
'karma-chrome-launcher',
'karma-webpack',
'karma-sourcemap-loader'
],
reporters: ['progress', 'junit'],
junitReporter: {
outputDir: '/tests/client/',
useBrowserName: true
},
singleRun: true
})
};