-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
33 lines (32 loc) · 950 Bytes
/
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
module.exports = (config) => {
const threshold = 90;
config.set({
frameworks: ['jasmine', 'karma-typescript'],
files: [{pattern: 'src/**/*.ts'}, {pattern: 'test/**/*.ts'}],
preprocessors: {
'**/*.ts': ['karma-typescript']
},
coverageReporter: {
type: 'lcov',
dir: 'coverage/'
},
karmaTypescriptConfig: {
compilerOptions: {
target: 'ESNext'
},
coverageOptions: {
threshold: {
file: {
statements: threshold,
branches: threshold,
functions: threshold,
lines: threshold
}
}
}
},
reporters: ['spec', 'coverage', 'karma-typescript'],
browsers: ['ChromeHeadless'],
singleRun: true
});
};