8000 Add browser subdir · packetloop/angular-webpack@359cfc2 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 21, 2019. It is now read-only.

Commit 359cfc2

Browse files
committed
Add browser subdir
1 parent a1b13ee commit 359cfc2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

karma.conf.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ module.exports = function (config) {
3030
reporters: ['progress', 'coverage'],
3131
coverageReporter: {
3232
dir: 'coverage/',
33+
subdir: function (browser) {
34+
return browser.toLowerCase().split(/[ /-]/)[0];
35+
},
3336
reporters: [
34-
{type: 'cobertura', subdir: '.', file: 'cobertura.xml'},
35-
{type: 'text', subdir: '.', file: 'text.txt'},
36-
{type: 'text-summary', subdir: '.', file: 'text-summary.txt'},
37-
{type: 'html', subdir: 'html'}
37+
{type: 'cobertura', file: 'cobertura.xml'},
38+
{type: 'text', file: 'text.txt'},
39+
{type: 'text-summary', file: 'text-summary.txt'},
40+
{type: 'html'}
3841
]
3942
},
4043
port: 9876,

0 commit comments

Comments
 (0)
0