2017-01-27 03:20:51 -05:00
|
|
|
// Karma configuration file, see link for more information
|
|
|
|
// https://karma-runner.github.io/0.13/config/configuration-file.html
|
2017-03-27 12:13:50 -04:00
|
|
|
|
2017-01-27 03:20:51 -05:00
|
|
|
module.exports = function (config) {
|
|
|
|
config.set({
|
|
|
|
basePath: '',
|
2017-02-02 19:04:25 -05:00
|
|
|
frameworks: ['jasmine', '@angular/cli'],
|
2017-01-27 03:20:51 -05:00
|
|
|
plugins: [
|
|
|
|
require('karma-jasmine'),
|
|
|
|
require('karma-chrome-launcher'),
|
2017-02-20 22:05:40 -05:00
|
|
|
require('karma-jasmine-html-reporter'),
|
|
|
|
require('karma-coverage-istanbul-reporter'),
|
2017-02-02 19:04:25 -05:00
|
|
|
require('@angular/cli/plugins/karma')
|
2017-01-27 03:20:51 -05:00
|
|
|
],
|
2017-02-20 22:05:40 -05:00
|
|
|
client:{
|
|
|
|
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
|
|
},
|
2017-01-27 03:20:51 -05:00
|
|
|
files: [
|
2017-08-02 18:37:03 -04:00
|
|
|
{ pattern: './node_modules/@angular/material/prebuilt-themes/indigo-pink.css', included: true }
|
2017-01-27 03:20:51 -05:00
|
|
|
],
|
2017-02-20 22:05:40 -05:00
|
|
|
coverageIstanbulReporter: {
|
|
|
|
reports: [ 'html', 'lcovonly' ],
|
|
|
|
fixWebpackSourcePaths: true
|
2017-01-27 03:20:51 -05:00
|
|
|
},
|
|
|
|
angularCli: {
|
|
|
|
environment: 'dev'
|
|
|
|
},
|
2017-08-02 18:37:03 -04:00
|
|
|
reporters: ['progress', 'kjhtml'],
|
2017-01-27 03:20:51 -05:00
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
autoWatch: true,
|
2018-01-18 13:58:40 -05:00
|
|
|
browsers: ['CustomChrome'],
|
2017-08-02 18:37:03 -04:00
|
|
|
browserNoActivityTimeout: 60000,
|
2018-01-18 13:58:40 -05:00
|
|
|
singleRun: false,
|
|
|
|
customLaunchers: {
|
|
|
|
CustomChrome: {
|
|
|
|
base: 'Chrome',
|
|
|
|
flags: process.env.TRAVIS && ['--no-sandbox']
|
|
|
|
}
|
|
|
|
}
|
2017-01-27 03:20:51 -05:00
|
|
|
});
|
|
|
|
};
|