UNPKG

1 kBJavaScriptView Raw
1"use strict";
2
3// Karma configuration file, see link for more information
4// https://karma-runner.github.io/1.0/config/configuration-file.html
5module.exports = function (config) {
6 config.set({
7 basePath: '',
8 frameworks: ['jasmine', '@angular-devkit/build-angular'],
9 plugins: [require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage-istanbul-reporter'), require('@angular-devkit/build-angular/plugins/karma')],
10 client: {
11 clearContext: false // leave Jasmine Spec Runner output visible in browser
12
13 },
14 coverageIstanbulReporter: {
15 dir: require('path').join(__dirname, '../../coverage/angular'),
16 reports: ['html', 'lcovonly', 'text-summary'],
17 fixWebpackSourcePaths: true
18 },
19 reporters: ['progress', 'kjhtml'],
20 port: 9876,
21 colors: true,
22 logLevel: config.LOG_INFO,
23 autoWatch: true,
24 browsers: ['Chrome'],
25 singleRun: false,
26 restartOnFileChange: true
27 });
28};
\No newline at end of file