This repository was archived by the owner on Nov 18, 2021. It is now read-only.
File tree 2 files changed +15
-6
lines changed
2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,13 @@ module.exports = function(config) {
4
4
frameworks : [ 'jasmine' , 'karma-typescript' ] ,
5
5
files : [ 'src/**/*.ts' , 'test/**/*.ts' ] ,
6
6
preprocessors : {
7
- '**/*.ts' : [ 'karma-typescript' ]
7
+ 'src/**/*.ts' : [ 'karma-typescript' , 'coverage' ] ,
8
+ 'test/**/*.ts' : [ 'karma-typescript' ]
8
9
} ,
9
- reporters : [ 'progress' ] ,
10
+ reporters : [ 'progress' , 'coverage' , 'karma-typescript' ] ,
10
11
karmaTypescriptConfig : {
11
12
compilerOptions : {
12
13
lib : [ 'dom' , 'es2015' ]
13
- } ,
14
- coverageOptions : {
15
- exclude : / \. ( d | s p e c | t e s t | h e l p e r ) \. t s / i
16
14
}
17
15
} ,
18
16
port : 9876 ,
@@ -23,7 +21,17 @@ module.exports = function(config) {
23
21
singleRun : true
24
22
}
25
23
26
- if ( ! process . env . TRAVIS ) {
24
+ if ( process . env . TRAVIS ) {
25
+ c . karmaTypescriptConfig . reports = {
26
+ lcovonly : {
27
+ dir : 'coverage' ,
28
+ subdirectory : 'lcov'
29
+ }
30
+ }
31
+ } else {
32
+ c . karmaTypescriptConfig . reports = {
33
+ html : 'coverage'
34
+ }
27
35
c . browsers . push ( 'Chrome' )
28
36
}
29
37
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ interface FakeObj {
10
10
}
11
11
12
12
const fakeObj : FakeObj = {
13
+ // tslint:disable-next-line:no-empty
13
14
method ( ) { }
14
15
}
15
16
You can’t perform that action at this time.
0 commit comments