-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
42 lines (42 loc) · 1.22 KB
/
karma.conf.js
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
/* tslint:disable */
module.exports = function (config) {
config.set({
browsers: ["Chrome_without_security"],
customLaunchers: {
Chrome_without_security: {
base: "ChromeHeadless",
flags: ["--disable-web-security"]
}
},
client: {
mocha: {
timeout: "30000"
}
},
files: [
"test/**/*.ts",
"src/**/*.ts"
],
exclude: [
"test/Scratchpad.ts"
],
frameworks: ["mocha", "karma-typescript"],
preprocessors: {
"**/*.ts": "karma-typescript"
},
reporters: ["mocha", "karma-typescript"],
karmaTypescriptConfig: {
reports:
{
"lcovonly": {
"directory": "coverage", // optional, defaults to 'coverage'
"subdirectory": "lcov", // optional, defaults to the name of the browser running the tests
"filename": "lcov.info", // optional, defaults to the report name
},
"html": "coverage",
"text-summary": ""
}
},
singleRun: true
});
};