-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.ts
48 lines (40 loc) · 1.08 KB
/
karma.conf.ts
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
44
45
46
47
48
// Karma configuration file, see link for more information
// https://karma-runner.github.io/2.0/config/configuration-file.html
module.exports = function(config) {
config.set({
frameworks: ["jasmine", "karma-typescript"],
files: [
{ pattern: "src/lib/**/*.ts" },
{ pattern: "src/test/**/*.ts" }
],
preprocessors: {
"src/lib/**/*.ts": ["karma-typescript", "coverage"],
"src/test/**/*.ts": ["karma-typescript"]
},
karmaTypescriptConfig: {
compilerOptions: {
sourceMap: true,
target: "ES2015"
},
bundlerOptions: {
transforms: [
require("karma-typescript-es6-transform")()
]
}
},
reporters: ["progress", "karma-typescript", "coverage"],
browsers: ["ChromeHeadless", "Chrome_with_debugging"],
customLaunchers: {
Chrome_with_debugging: {
base: 'Chrome',
flags: ['--remote-debugging-port=9333'],
debug: true
}
},
coverageReporter: {
type : 'html',
dir : 'coverage/'
}
// singleRun: true
});
};