-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf.ts
36 lines (33 loc) · 905 Bytes
/
karma.conf.ts
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
// Karma configuration
// Generated on Mon Dec 25 2017 20:41:30 GMT-0800 (PST)
module.exports = (config: any) => {
config.set({
autoWatch: false,
browsers: ['ChromeHeadless'],
colors: true,
files: [
'karma-test-shim.ts',
{ pattern: 'lib/**/*.ts' }
],
frameworks: ['jasmine', 'karma-typescript'],
logLevel: config.LOG_INFO,
port: 9876,
preprocessors: {
'lib/**/!(*spec).ts': ['coverage'],
'**/*.ts': ['karma-typescript'] // tslint:disable-line:object-literal-sort-keys
},
reporters: ['dots', 'karma-typescript', 'kjhtml', 'coverage'],
singleRun: true,
karmaTypescriptConfig: {
include: [ 'karma-test-shim.ts' ],
tsconfig: './tsconfig.json'
},
coverageReporter: {
dir: 'coverage',
reporters: [
{ type: 'html', subdir: '.' },
{ type: 'lcov', subdir: '.' }
]
}
});
};