socialnetworknews-web

A open-source Paper.li clone
git clone git://archive.git.mtrnord.blog/SocialNetworkNews/socialnetworknews-web.git
Log | Files | Refs | README | LICENSE

karma.conf.js (1452B)


      1 // Karma configuration file, see link for more information
      2 // https://karma-runner.github.io/1.0/config/configuration-file.html
      3 
      4 module.exports = function (config) {
      5   config.set({
      6     basePath: '',
      7     frameworks: ['jasmine', '@angular-devkit/build-angular'],
      8     plugins: [
      9       require('karma-jasmine'),
     10       require('karma-chrome-launcher'),
     11       require('karma-jasmine-html-reporter'),
     12       require('karma-coverage-istanbul-reporter'),
     13       require('@angular-devkit/build-angular/plugins/karma')
     14     ],
     15     client:{
     16       clearContext: false // leave Jasmine Spec Runner output visible in browser
     17     },
     18     coverageIstanbulReporter: {
     19       dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
     20       fixWebpackSourcePaths: true
     21     },
     22     angularCli: {
     23       environment: 'dev'
     24     },
     25     reporters: ['progress', 'kjhtml'],
     26     port: 9876,
     27     colors: true,
     28     logLevel: config.LOG_INFO,
     29     autoWatch: false,
     30     browsers: [
     31       'Chrome',
     32       //'ChromeHeadless'
     33     ],
     34     customLaunchers: {
     35       'ChromeHeadless': {
     36         base: 'Chrome',
     37         flags: [
     38           // '--no-sandbox',
     39           // See https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
     40           '--headless',
     41           '--disable-gpu',
     42           // Without a remote debugging port, Google Chrome exits immediately.
     43           '--remote-debugging-port=9222',
     44         ],
     45       }
     46     },
     47     singleRun: true
     48   });
     49 };