sahat/satellizer

View on GitHub
karma.conf.js

Summary

Maintainability
A
1 hr
Test Coverage
module.exports = function (config) {
  config.set({
    files: [
      'examples/client/vendor/angular.js',
      'examples/client/vendor/angular-mocks.js',
      'node_modules/babel-polyfill/dist/polyfill.js',
      'test/*.spec.ts'
    ],

    browsers: ['PhantomJS'],

    frameworks: ['jasmine'],

    plugins: [
      'karma-phantomjs-launcher',
      'karma-jasmine',
      'karma-coverage',
      'karma-webpack'
    ],

    singleRun: true,

    autoWatch: false,

    reporters: ['dots'],

    preprocessors: {
      'test/*.spec.ts': ['webpack']
    },

    webpack: {
      resolve: {
        extensions: ['', '.ts', '.js']
      },
      module: {
        loaders: [
          { test: /\.ts$/, loader: 'ts' }
        ]
      }
    },

    webpackMiddleware: {
      noInfo: true
    }
  });
};