1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/karma.conf.js

44 lines
1.4 KiB
JavaScript
Raw Normal View History

// Karma configuration file, see link for more information
2022-03-31 05:11:11 +08:00
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
2018-05-23 08:27:07 +08:00
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
2018-03-31 03:30:30 +08:00
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
2022-03-31 05:11:11 +08:00
require('karma-coverage'),
2018-05-23 08:27:07 +08:00
require('@angular-devkit/build-angular/plugins/karma')
],
2017-07-15 23:48:29 +08:00
client: {
2022-03-31 05:11:11 +08:00
jasmine: {
// you can add configuration options for Jasmine here
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
// for example, you can disable the random execution with `random: false`
// or set a specific seed with `seed: 4321`
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
2022-03-31 05:11:11 +08:00
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
},
2022-03-31 05:11:11 +08:00
coverageReporter: {
dir: require('path').join(__dirname, 'coverage'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
2018-07-29 05:36:43 +08:00
autoWatch: false,
2018-03-31 03:30:30 +08:00
browsers: ["ChromeHeadless"],
2018-07-29 05:36:43 +08:00
singleRun: true
});
};