-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
43 lines (33 loc) · 1.04 KB
/
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
41
42
43
var argv = require('yargs').argv;
var webpackConfig = require('./config/webpack.config.test.js');
module.exports = function (config) {
config.set({
singleRun: !argv.auto,
autoWatch: !!argv.auto,
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
files: [
'./node_modules/jquery/dist/jquery.js',
'./node_modules/angular/angular.js',
'./node_modules/angular-animate/angular-animate.js',
'./node_modules/angular-mocks/angular-mocks.js',
'src/**/*.module.js',
'src/**/*.spec.js'
],
exclude: [],
frameworks: ['jasmine'],
browsers: ['PhantomJS'],
preprocessors: {
'src/**/*.js': ['webpack']
},
reporters: ['progress', 'coverage'],
port: 9876,
colors: true,
logLevel: config.LOG_WARN,
coverageReporter: {
type: 'html',
dir: 'coverage/'
},
webpack: webpackConfig
})
};