This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
karma.conf.js
61 lines (52 loc) · 1.57 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = function(config) {
config.set({
files: [
// Vendor
'bower_components/es5-shim/es5-shim.js',
'bower_components/promise-polyfill/Promise.js',
'bower_components/jquery/jquery.js',
'node_modules/upndown/lib/upndown.bundle.js',
'bower_components/office-ui-fabric/dist/js/jquery.fabric.min.js',
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
'bower_components/angular-animate/angular-animate.js',
'bower_components/angular-sanitize/angular-sanitize.js',
'bower_components/angular-translate/angular-translate.js',
'bower_components/angular-ui-router/release/angular-ui-router.js',
// App
'app/components/**/*.ts',
'app/states/**/*.ts',
'app/**/*.test.js'
],
frameworks: ['jasmine'],
reporters: ['progress'],
browsers: ['PhantomJS'],
preprocessors: {
'app/**/*.ts': ['typescript']
},
typescriptPreprocessor: {
options: {
declaration: true,
noExternalResolve: false,
sourceMap: true,
target: 'es5'
},
typings: [
'app/_typings/**/*.d.ts',
'typings/tsd.d.ts'
],
transformPath: function(path) {
return path.replace(/\.ts$/, '.js');
}
},
coverageReporter: {
dir: 'coverage/',
reporters: [
{type: 'lcov', subdir: 'report-lcov'},
{type: 'html', subdir: 'report-html'},
{type: 'cobertura', subdir: '.', file: 'cobertura.txt'},
{type: 'text-summary'}
]
}
});
};