public-gateway-cacher/karma.conf.js

33 lines
1.0 KiB
JavaScript
Raw Normal View History

2019-11-29 02:20:50 +00:00
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
2022-03-11 07:06:35 +00:00
basePath: "",
frameworks: ["jasmine", "@angular-devkit/build-angular"],
2019-11-29 02:20:50 +00:00
plugins: [
2022-03-11 07:06:35 +00:00
require("karma-jasmine"),
require("karma-chrome-launcher"),
require("karma-jasmine-html-reporter"),
require("karma-coverage-istanbul-reporter"),
require("@angular-devkit/build-angular/plugins/karma"),
2019-11-29 02:20:50 +00:00
],
client: {
2022-03-11 07:06:35 +00:00
clearContext: false, // leave Jasmine Spec Runner output visible in browser
2019-11-29 02:20:50 +00:00
},
coverageIstanbulReporter: {
2022-03-11 07:06:35 +00:00
dir: require("path").join(__dirname, "./coverage/public-gateway-cacher"),
reports: ["html", "lcovonly", "text-summary"],
fixWebpackSourcePaths: true,
2019-11-29 02:20:50 +00:00
},
2022-03-11 07:06:35 +00:00
reporters: ["progress", "kjhtml"],
2019-11-29 02:20:50 +00:00
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
2022-03-11 07:06:35 +00:00
browsers: ["Chrome"],
2019-11-29 02:20:50 +00:00
singleRun: false,
2022-03-11 07:06:35 +00:00
restartOnFileChange: true,
})
}