-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathkarma.conf.ts
More file actions
33 lines (32 loc) · 765 Bytes
/
karma.conf.ts
File metadata and controls
33 lines (32 loc) · 765 Bytes
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
module.exports = (config) => {
config.set({
frameworks: ['jasmine', 'karma-typescript'],
customLaunchers: {
chromeTravisCI: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
files: [
'src/**/*.ts',
'test/**/*.ts',
],
preprocessors: {
'src/**/*.ts': ['karma-typescript', 'coverage'],
'test/**/*.ts': ['karma-typescript'],
},
reporters: ['dots', 'coverage'],
coverageReporter: {
reporters: [
// { type: 'html', subdir: 'report-html' },
{ type: 'lcovonly', subdir: '.', file: 'lcov.info' }
]
},
colors: true,
browsers: ['Chrome'],
logLevel: config.INFO
});
if (process.env.TRAVIS) {
config.browsers = ['chromeTravisCI'];
}
};