Skip to content

Commit 5052566

Browse files
author
beyerleinf
committed
chore(): Modified karma config
1 parent 44a3cd0 commit 5052566

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

karma.conf.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Karma configuration file, see link for more information
22
// https://karma-runner.github.io/1.0/config/configuration-file.html
33

4-
module.exports = function (config) {
4+
module.exports = function(config) {
55
config.set({
66
basePath: '',
77
frameworks: ['jasmine', '@angular-devkit/build-angular'],
@@ -10,23 +10,24 @@ module.exports = function (config) {
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
1212
require('karma-coverage-istanbul-reporter'),
13-
require('@angular-devkit/build-angular/plugins/karma')
13+
require('karma-spec-reporter'),
14+
require('@angular-devkit/build-angular/plugins/karma'),
1415
],
1516
client: {
16-
clearContext: false // leave Jasmine Spec Runner output visible in browser
17+
clearContext: false, // leave Jasmine Spec Runner output visible in browser
1718
},
1819
coverageIstanbulReporter: {
1920
dir: require('path').join(__dirname, './coverage/async-module-provider'),
2021
reports: ['html', 'lcovonly', 'text-summary'],
21-
fixWebpackSourcePaths: true
22+
fixWebpackSourcePaths: true,
2223
},
23-
reporters: ['progress', 'kjhtml'],
24+
reporters: ['spec', 'kjhtml'],
2425
port: 9876,
2526
colors: true,
2627
logLevel: config.LOG_INFO,
2728
autoWatch: true,
28-
browsers: ['Chrome'],
29-
singleRun: false,
30-
restartOnFileChange: true
29+
browsers: ['ChromeHeadless'],
30+
singleRun: true,
31+
restartOnFileChange: true,
3132
});
3233
};

package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"@angular/cli": "~8.0.2",
2929
"@angular/compiler-cli": "~8.0.0",
3030
"@angular/language-service": "~8.0.0",
31-
"@types/node": "~8.9.4",
3231
"@types/jasmine": "~3.3.8",
3332
"@types/jasminewd2": "~2.0.3",
33+
"@types/node": "~8.9.4",
3434
"codelyzer": "^5.0.0",
3535
"jasmine-core": "~3.4.0",
3636
"jasmine-spec-reporter": "~4.2.1",
@@ -39,6 +39,7 @@
3939
"karma-coverage-istanbul-reporter": "~2.0.1",
4040
"karma-jasmine": "~2.0.1",
4141
"karma-jasmine-html-reporter": "^1.4.0",
42+
"karma-spec-reporter": "0.0.32",
4243
"protractor": "~5.4.0",
4344
"ts-node": "~7.0.0",
4445
"tslint": "~5.15.0",

0 commit comments

Comments
 (0)