1
1
module . exports = function ( config ) {
2
2
config . set ( {
3
- frameworks : [ 'jasmine' ] ,
4
- browsers : [ 'ChromeDebugging' ] ,
3
+ frameworks : [ 'jasmine' , 'karma-typescript' ] ,
5
4
files : [
6
- './dist/*.js' ,
7
- './tests/**/*.js' ,
8
- './node_modules/jasmine-ajax/lib/mock-ajax.js'
5
+ 'src/**/*.ts' ,
6
+ 'test/**/*.ts'
9
7
] ,
10
- preprocessors : {
11
- './dist/specflow.driver.js' : [ 'coverage' ] ,
12
- '**/*.js' : [ 'sourcemap' ]
8
+ mime : {
9
+ 'text/x-typescript' : [ 'ts' , 'tsx' ]
13
10
} ,
14
- customLaunchers : {
15
- ChromeDebugging : {
16
- base : 'Chrome' ,
17
- flags : [ '--remote-debugging-port=9333' ]
18
- }
11
+ preprocessors : {
12
+ '**/*.ts' : 'karma-typescript'
19
13
} ,
20
- reporters : [ 'progress' , 'coverage' , 'remap-coverage' , 'junit' ] ,
21
14
junitReporter : {
22
- outputDir : './tests /reports' ,
23
- suite : 'power-apps -specflow-bindings' ,
15
+ outputDir : 'test_results /reports' ,
16
+ suite : 'powerapps -specflow-bindings' ,
24
17
useBrowserName : true ,
25
18
} ,
26
- coverageReporter : {
27
- type : 'in-memory'
19
+ reporters : [ 'progress' , 'karma-typescript' , 'junit' ] ,
20
+ browsers : [ 'Chrome' ] ,
21
+ mime : {
22
+ 'text/x-typescript' : [ 'ts' , 'tsx' ]
28
23
} ,
29
- remapCoverageReporter : {
30
- html : './tests/reports/coverage/html' ,
31
- cobertura : './tests/reports/coverage/cobertura.xml' ,
32
- lcovonly : './tests/reports/coverage/lcov.info' ,
24
+ karmaTypescriptConfig : {
25
+ reports :
26
+ {
27
+ html : {
28
+ directory : 'test_results/coverage' ,
29
+ subdirectory : 'html'
30
+ } ,
31
+ lcovonly : {
32
+ directory : 'test_results/coverage' ,
33
+ subdirectory : 'lcov' ,
34
+ filename : 'lcov.info' ,
35
+ } ,
36
+ cobertura : {
37
+ directory : 'test_results/coverage' ,
38
+ subdirectory : 'cobertura' ,
39
+ filename : 'cobertura.xml' ,
40
+ }
41
+ }
33
42
}
34
43
} ) ;
35
44
} ;
0 commit comments