2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-09 13:10:44 +00:00
RTL/src/karma.conf.cjs

48 lines
1.2 KiB
JavaScript
Raw Normal View History

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')
],
client: {
jasmine: {
2021-08-28 21:03:18 +00:00
timeoutInterval: 500
},
2021-08-28 21:03:18 +00:00
clearContext: false
},
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 }
],
jasmineHtmlReporter: {
2021-08-28 21:03:18 +00:00
suppressAll: true
},
coverageReporter: {
2021-08-28 21:03:18 +00:00
dir: require('path').join(__dirname, '../coverage/RTL'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
},
2021-12-29 23:08:41 +00:00
customLaunchers: {
CustomChromeHeadless: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
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,
restartOnFileChange: true
});
};