-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
40 lines (37 loc) · 947 Bytes
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
var path = require('path');
var webpack = require('webpack');
module.exports = function(config){
var webpackConfig = require('./webpack.config.js');
var karmaWebpack = {
module: webpackConfig.module,
resolve: webpackConfig.resolve,
devtool: 'eval',
cache: true
};
config.set({
autoWatch : true,
basePath: path.join(__dirname, '/app/'),
browsers : ['Chrome'],
colors: true,
exclude: [],
frameworks: ['mocha', 'chai'],
files: [
'../node_modules/angular/angular.min.js',
'../node_modules/angular-mocks/angular-mocks.js',
'**/*.spec.coffee'
],
logLevel: config.LOG_INFO,
plugins : [
require('karma-webpack'),
require('karma-mocha'),
require('karma-chai'),
require('karma-chrome-launcher')
],
port: 9876,
preprocessors: {
'**/*.spec.coffee': ['webpack']
},
reporters: ['progress'],
webpack: karmaWebpack
});
};