forked from trimox/angular-mdc-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
41 lines (40 loc) · 970 Bytes
/
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
const webpackConfig = require('./test/webpack.test.js');
module.exports = function(config) {
config.set({
basePath: '',
webpack: webpackConfig,
frameworks: ['jasmine'],
reporters: ['dots', 'coverage-istanbul'],
mime: {
'text/x-typescript': ['ts','tsx']
},
files: [
'test/test.ts'
],
preprocessors: {
'test/test.ts': 'webpack'
},
coverageIstanbulReporter: {
dir: 'coverage',
reports: ['html', 'lcovonly', 'json'],
fixWebpackSourcePaths: true,
skipFilesWithNoCoverage: true
},
port: 9876,
browserDisconnectTimeout: 40000,
browserNoActivityTimeout: 120000,
captureTimeout: 240000,
colors: true,
logLevel: config.LOG_INFO,
browsers: ['ChromeHeadlessCI'],
customLaunchers: {
"ChromeHeadlessCI": {
"base": "ChromeHeadless",
"flags": [
"--window-size=1024,768",
"--no-sandbox"
]
}
}
});
};