Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. // Karma configuration file, see link for more information
  3. // https://karma-runner.github.io/1.0/config/configuration-file.html
  4.  
  5. module.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'),
  14.       require('@angular-devkit/build-angular/plugins/karma'),
  15.     ],
  16.     client: {
  17.       clearContext: false, // leave Jasmine Spec Runner output visible in browser
  18.     },
  19.     coverageIstanbulReporter: {
  20.       dir: require('path').join(__dirname, '../coverage'),
  21.       reports: ['html', 'lcovonly', 'text-summary'],
  22.       fixWebpackSourcePaths: true,
  23.     },
  24.     reporters: ['progress', 'kjhtml'],
  25.     port: 9876,
  26.     colors: true,
  27.     logLevel: config.LOG_INFO,
  28.     autoWatch: true,
  29.     browsers: ['Chrome'],
  30.     singleRun: false,
  31.   });
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement