firehoseio/js_client

View on GitHub
karma.conf.js

Summary

Maintainability
A
1 hr
Test Coverage
const path = require("path")
const webpackConfig = require("./webpack.test.js")

module.exports = function(config) {
  config.set({
    basePath: '',
    frameworks: ['jasmine'],
    files: [
      'spec/setup.js',
      'spec/*_spec.js'
    ],
    preprocessors: {
      'spec/*.js': ['webpack', 'sourcemap']
    },
    webpack: webpackConfig,
    webpackServer: {
      noInfo: true
    },
    reporters: ['dots', 'coverage'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: false,
    browsers: ['Chrome', 'ChromeHeadless'],
    singleRun: true,
    concurrency: Infinity,
    coverageReporter: {
      dir: 'tmp/coverage/',
      reporters: [
        {type: 'html', subdir: 'html'},
        {type: 'clover', subdir: '.'}
      ]
    },
  })
}