-
Notifications
You must be signed in to change notification settings - Fork 18
/
karma.conf.js
47 lines (39 loc) · 888 Bytes
/
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
43
44
45
46
47
module.exports = function (config) {
config.set({
frameworks: ["mocha", "karma-typescript"],
files: [
{ pattern: 'node_modules/babel-polyfill/browser.js' },
{ pattern: "src/**/*.ts" },
{ pattern: "test/**/*.spec.ts" }
],
exclude: [
"/**/*.d.ts"
],
preprocessors: {
"**/*.ts": ["karma-typescript"]
},
client: {
mocha: {
// Use this as needed during developer to filter tests.
grep: ''
}
},
// https://github.com/monounity/karma-typescript
karmaTypescriptConfig: {
reports: {
"text": null,
"text-summary": null,
"html": "coverage",
},
compilerOptions: {
target: "es5",
lib: [
"es2017",
"dom"
]
}
},
reporters: ["karma-typescript", "mocha"],
browsers: ["PhantomJS"]
});
};