-
Notifications
You must be signed in to change notification settings - Fork 7
/
karma.conf.ci.js
65 lines (64 loc) · 2.26 KB
/
karma.conf.ci.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
// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html
const process = require('process');
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma'),
require('karma-junit-reporter')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
files: [
{ pattern: 'src/assets/*.gif', included: false, watched: false, served: true },
{ pattern: 'src/assets/*.ico', included: false, watched: false, served: true },
{ pattern: 'src/assets/*.png', included: false, watched: false, served: true },
{ pattern: 'src/assets/mat-icons/*.png', included: false, watched: false, served: true },
{ pattern: 'src/assets/svg-icons/*.svg', included: false, watched: false, served: true },
{ pattern: 'src/app/shared/services/reader/excel/test.xlsx', included: false, watched: false, served: true },
// following links are required for PivotTableComponent
'node_modules/jquery/dist/jquery.min.js',
'node_modules/jquery-ui-dist/jquery-ui.min.js',
'node_modules/pivottable/dist/pivot.min.js'
],
proxies: {
'/assets/': '/base/src/assets/'
},
mime: {
'text/x-typescript': ['ts', 'tsx']
},
coverageReporter: {
dir: require('path').join(__dirname, 'coverage'),
subdir: '.',
reports: ['html', 'lcovonly', 'text-summary', 'cobertura'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml', 'junit'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: [
'--headless',
'--no-sandbox',
'--disable-gpu',
'--remote-debugging-port=9222'
],
debug: false
}
},
browsers: ['ChromeHeadless'],
singleRun: false
});
};