This repository was archived by the owner on Apr 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathkarma.conf.js
More file actions
43 lines (42 loc) · 1.32 KB
/
karma.conf.js
File metadata and controls
43 lines (42 loc) · 1.32 KB
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
// Karma configuration file, see link for more information
// https://karma-runner.github.io/6.3/config/configuration-file.html
module.exports = function (config) {
config.set({
autoWatch: false,
frameworks: ['jasmine', '@angular-devkit/build-angular'],
logLevel: config.LOG_INFO,
port: 9876,
reporters: ['progress', 'kjhtml', 'spec', 'coverage'],
restartOnFileChange: true, // when auto-watch is on, cancel and restart unit tests whenever a change is detected
singleRun: false,
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-edge-launcher'),
require('karma-firefox-launcher'),
require('karma-safari-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-spec-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
coverageReporter: {
dir: require('path').join(__dirname, '../coverage/ngx-trebol-frontend'),
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
],
check: {
global: {
statements: 80,
branches: 75,
functions: 75,
lines: 80
}
}
}
});
};