-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
57 lines (49 loc) · 1.65 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
module.exports = function (config) {
config.set({
autoWatch: true,
basePath: '.',
browsers: ['Chrome'],
colors: true,
frameworks: ['jasmine'],
logLevel: config.LOG_INFO,
port: 9876,
singleRun: false,
coverageReporter: {
reporters: [
{ file: 'coverage-final.json', type: 'json' }
]
},
files: [
// Load Angular 2 dependencies and the SystemJS shim
{ pattern: 'node_modules/angular2/bundles/angular2-polyfills.js', included: true, watched: true },
{ pattern: 'node_modules/systemjs/dist/system.src.js', included: true, watched: true },
{ pattern: 'node_modules/rxjs/bundles/Rx.js', included: true, watched: true },
{ pattern: 'node_modules/angular2/bundles/angular2.dev.js', included: true, watched: true },
{ pattern: 'node_modules/angular2/bundles/testing.dev.js', included: true, watched: true },
{ pattern: 'karma-test-shim.js', included: true, watched: true },
// The application and test files
{ pattern: 'dist/app/**/*.js', included: false, watched: false },
{ pattern: 'dist/test/unit/app/**/*.js', included: false, watched: false },
// Support for debugging seessions
{ pattern: 'source/app/**/*.ts', included: false, watched: false },
{ pattern: 'dist/test/unit/app/**/*.js.map', included: false, watched: false }
],
plugins: [
'karma-chrome-launcher',
'karma-coverage',
'karma-jasmine'
],
preprocessors: {
'source/app/**/*.js': ['coverage']
},
proxies: {
'/angular2/': '/base/node_modules/angular2/',
'/node_modules/': '/base/node_modules/',
'/source/app/': '/base/source/app/'
},
reporters: [
'coverage',
'progress'
]
})
}