forked from madhukard/angular2-jspm-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
42 lines (33 loc) · 938 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
41
42
/*globals module,process,require */
module.exports = function (config) {
'use strict';
config.set({
autoWatch: true,
singleRun: false,
frameworks: ['jspm', 'jasmine'],
files: [
'node_modules/babel-polyfill/dist/polyfill.js'
],
jspm: {
config: 'app/jspm-config/config.js',
packages: "target/development/jspm/",
loadFiles: [
'target/development/src/**/*.spec.js'
],
serveFiles: [
'target/development/src/**/!(*spec).js'
]
},
// - Chrome, ChromeCanary, Firefox, Opera, Safari (only Mac), PhantomJS, IE (only Windows)
browsers: process.env.TRAVIS ? ['Firefox'] : ['Chrome'],
reporters: ['dots', 'coverage'],
preprocessors: {"target/development/src/**/!(*spec).js": "coverage"},
coverageReporter: {
dir: 'target/coverageReport',
reporters: [
{type: 'json'},
{type: 'lcov'}
]
}
});
};