-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathkarma_config.js
48 lines (40 loc) · 922 Bytes
/
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
45
46
47
48
// Karma configuration
// Generated on Sat Oct 22 2016 17:35:31 GMT-0700 (Pacific Daylight Time)
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'karma-typescript'],
files: [
'node_modules/chai/chai.js',
'**/*.ts'
],
exclude: [
'demo/**/*.ts',
'dist/*.ts',
'external/**/*.ts',
'node_modules/**/*.ts',
],
preprocessors: {
'**/*.ts': ['karma-typescript']
},
reporters: ['dots', 'karma-typescript'],
browsers: ['Chrome_test'],
customLaunchers: {
Chrome_test: {
base: 'Chrome',
flags: ['--disable-web-security']
}
},
karmaTypescriptConfig: {
tsconfig: 'tsconfig.json',
exclude: [
'demo',
'external',
'node_modules'
],
reports: {
'html': 'coverage',
'lcovonly': 'coverage'
}
}
})
} // end of module