2018-06-13 18:34:10 +02:00
|
|
|
// Karma configuration file, see link for more information
|
|
|
|
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
|
|
|
2019-09-23 16:47:27 +02:00
|
|
|
module.exports = function (config) {
|
2018-06-19 16:55:50 +02:00
|
|
|
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-istanbul-reporter'),
|
|
|
|
require('@angular-devkit/build-angular/plugins/karma')
|
|
|
|
],
|
|
|
|
client: {
|
2019-09-23 16:47:27 +02:00
|
|
|
clearContext: false, // leave Jasmine Spec Runner output visible in browser
|
|
|
|
jasmine: {
|
|
|
|
timeoutInterval: 10000
|
|
|
|
}
|
2018-06-19 16:55:50 +02:00
|
|
|
},
|
|
|
|
coverageIstanbulReporter: {
|
|
|
|
dir: require('path').join(__dirname, '../coverage'),
|
|
|
|
reports: ['html', 'lcovonly'],
|
|
|
|
fixWebpackSourcePaths: true
|
|
|
|
},
|
|
|
|
reporters: ['progress', 'kjhtml'],
|
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
autoWatch: true,
|
|
|
|
browsers: ['Chrome'],
|
2018-10-15 10:12:47 +02:00
|
|
|
singleRun: false,
|
|
|
|
proxies: {
|
|
|
|
'/apps/': 'http://localhost:8000/apps/',
|
|
|
|
'/media/': 'http://localhost:8000/media/',
|
|
|
|
'/rest/': 'http://localhost:8000/rest/',
|
2018-11-04 17:13:24 +01:00
|
|
|
'/ws/': 'ws://localhost:8000/'
|
2018-10-15 10:12:47 +02:00
|
|
|
}
|
2018-06-19 16:55:50 +02:00
|
|
|
});
|
|
|
|
};
|