blob: 154ad588f42d35555e0fe6751963253f320ac84d [file] [log] [blame]
Sudarshan Kumar15155952019-12-18 22:32:06 +05301// Karma configuration file, see link for more information
2// https://karma-runner.github.io/1.0/config/configuration-file.html
3
jegadeeshbabu34d894a72020-03-05 20:16:36 +05304process.env.CHROME_BIN = require('puppeteer').executablePath()
Sudarshan Kumar15155952019-12-18 22:32:06 +05305module.exports = function (config) {
6 config.set({
7 basePath: '',
8 frameworks: ['jasmine', '@angular-devkit/build-angular'],
9 plugins: [
10 require('karma-jasmine'),
11 require('karma-chrome-launcher'),
12 require('karma-jasmine-html-reporter'),
13 require('karma-coverage-istanbul-reporter'),
jegadeeshbabu34d894a72020-03-05 20:16:36 +053014 require('karma-phantomjs-launcher'),
Sudarshan Kumar15155952019-12-18 22:32:06 +053015 require('@angular-devkit/build-angular/plugins/karma')
16 ],
17 client: {
18 clearContext: false // leave Jasmine Spec Runner output visible in browser
19 },
20 coverageIstanbulReporter: {
21 dir: require('path').join(__dirname, '../coverage'),
22 reports: ['html', 'lcovonly'],
23 fixWebpackSourcePaths: true
24 },
25 reporters: ['progress', 'kjhtml'],
26 port: 9876,
27 colors: true,
28 logLevel: config.LOG_INFO,
29 autoWatch: true,
jegadeeshbabu34d894a72020-03-05 20:16:36 +053030 browsers: ['ChromeHeadless'],
Sudarshan Kumar15155952019-12-18 22:32:06 +053031 singleRun: false
32 });
33};