forked from davinkevin/angularjs-jspm-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.config.js
44 lines (35 loc) · 1.05 KB
/
karma.config.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
44
module.exports = function (config) {
config.set({
frameworks: ['jspm', 'jasmine', 'jasmine-matchers'],
files: [
'../node_modules/karma-babel-preprocessor/node_modules/babel-core/browser-polyfill.js'
],
preprocessors: {
'app/**/!(*.spec).js': ['babel', 'coverage']
},
babelPreprocessor: { options: { stage: 0, sourceMap: 'inline' } },
basePath: 'public',
jspm: {
config: 'config.js',
loadFiles: ['app/app.js', '**/*.spec.js'],
serveFiles: ['**/*.+(js|html|css)'],
stripExtension: true
},
proxies: {
'/app/': '/base/app/',
'/jspm_packages/': '/base/jspm_packages/'
},
reporters: ['dots', 'coverage'],
coverageReporter: {
instrumenters: { isparta : require('isparta') },
instrumenter: { 'app/**/*.js': 'isparta' },
dir: '../reports/coverage/',
reporters: [
{type: 'html'}, {type: 'json'}, {type: 'lcov'}, {type: 'text-summary'}
]
},
browsers: ['PhantomJS'],
singleRun : false,
browserNoActivityTimeout: 75000
});
};