Skip to content

Commit

Permalink
chore: custom karma.conf, no watch, use headless
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdn committed Dec 14, 2024
1 parent 94b5fc4 commit dd5866b
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
autoWatch: false,
singleRun: true,
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')
require("karma-jasmine"),
require("karma-chrome-launcher"),
require("karma-jasmine-html-reporter"),
require("karma-coverage"),
require("@angular-devkit/build-angular/plugins/karma"),
],
client: {
jasmine: {
Expand All @@ -21,18 +23,15 @@ module.exports = function (config) {
},
},
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
suppressAll: true, // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/angular-sandbox'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
dir: require("path").join(__dirname, "./coverage/angular-sandbox"),
subdir: ".",
reporters: [{ type: "html" }, { type: "text-summary" }],
},
reporters: ['progress', 'kjhtml'],
browsers: ['Chrome'],
restartOnFileChange: true
reporters: ["progress", "kjhtml"],
browsers: ["ChromeHeadless"],
restartOnFileChange: true,
});
};

0 comments on commit dd5866b

Please sign in to comment.