-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkarma.conf.js
More file actions
81 lines (71 loc) · 2.43 KB
/
Copy pathkarma.conf.js
File metadata and controls
81 lines (71 loc) · 2.43 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
module.exports = function (config) {
config.set({
singleRun: true,
frameworks: ["jasmine", "karma-typescript"],
files: [
'lib/es5-promise-polyfill.js',
'lib/array-find-polyfill.js',
'lib/es6-map-shim.js',
"src/inversify.config.ts",
"src/**/*.ts",
"specs/config.ts",
"specs/**/*.spec.ts",
// "specs/conversations.spec.ts"
// "specs/interfaceManager.spec.ts"
//"specs/indexedDBLogger.spec.ts"
],
preprocessors: {
"**/*.ts": ["karma-typescript"],
},
reporters: ["progress", "karma-typescript", "teamcity"],
browsers: ["ChromeHeadless"],
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: [
'--no-sandbox',
// See https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
'--headless',
'--disable-gpu',
// Without a remote debugging port, Google Chrome exits immediately.
' --remote-debugging-port=9222',
]
}
},
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_DEBUG,
client: {
captureConsole: true
},
karmaTypescriptConfig: {
reports:
{
"html": {
"directory": "coverage", // optional, defaults to 'coverage'
"subdirectory": "report" // optional, defaults to the name of the browser running the tests
},
"text-summary": ""
},
coverageOptions: {
instrumentation: true
},
compilerOptions: {
emitDecoratorMetadata: true,
experimentalDecorators: true,
module: "commonjs",
sourceMap: true,
"moduleResolution": "node",
target: "ES5",
"lib": [
"es6",
"dom"
],
"types": [
"jasmine",
"reflect-metadata"
]
}
}
});
};