2019-03-19 00:13:01 +00:00
|
|
|
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'),
|
2020-12-20 23:36:04 +00:00
|
|
|
require('karma-coverage'),
|
2019-03-19 00:13:01 +00:00
|
|
|
require('@angular-devkit/build-angular/plugins/karma')
|
|
|
|
],
|
|
|
|
client: {
|
2020-12-20 23:36:04 +00:00
|
|
|
jasmine: {
|
2021-08-28 21:03:18 +00:00
|
|
|
timeoutInterval: 500
|
2020-12-20 23:36:04 +00:00
|
|
|
},
|
2021-08-28 21:03:18 +00:00
|
|
|
clearContext: false
|
2019-03-19 00:13:01 +00:00
|
|
|
},
|
2021-08-28 21:03:18 +00:00
|
|
|
files: [
|
|
|
|
{ pattern: '../node_modules/@angular/material/prebuilt-themes/indigo-pink.css', watched: true, included: true, served: true }
|
|
|
|
],
|
2020-12-20 23:36:04 +00:00
|
|
|
jasmineHtmlReporter: {
|
2021-08-28 21:03:18 +00:00
|
|
|
suppressAll: true
|
2020-12-20 23:36:04 +00:00
|
|
|
},
|
|
|
|
coverageReporter: {
|
2021-08-28 21:03:18 +00:00
|
|
|
dir: require('path').join(__dirname, '../coverage/RTL'),
|
2020-12-20 23:36:04 +00:00
|
|
|
subdir: '.',
|
|
|
|
reporters: [
|
|
|
|
{ type: 'html' },
|
|
|
|
{ type: 'text-summary' }
|
|
|
|
]
|
2019-03-19 00:13:01 +00:00
|
|
|
},
|
2021-12-29 23:08:41 +00:00
|
|
|
customLaunchers: {
|
|
|
|
CustomChromeHeadless: {
|
|
|
|
base: 'ChromeHeadless',
|
|
|
|
flags: ['--no-sandbox']
|
|
|
|
}
|
|
|
|
},
|
2019-03-19 00:13:01 +00:00
|
|
|
reporters: ['progress', 'kjhtml'],
|
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
autoWatch: true,
|
2021-12-29 23:08:41 +00:00
|
|
|
browsers: ['CustomChromeHeadless'],
|
2021-08-28 21:03:18 +00:00
|
|
|
singleRun: true,
|
2020-12-20 23:36:04 +00:00
|
|
|
restartOnFileChange: true
|
2019-03-19 00:13:01 +00:00
|
|
|
});
|
2020-12-20 23:36:04 +00:00
|
|
|
};
|