forked from mobxjs/mobx-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
49 lines (42 loc) · 1.63 KB
/
karma.conf.js
File metadata and controls
49 lines (42 loc) · 1.63 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
module.exports = function(config) {
config.set({
frameworks: ["jasmine", "karma-typescript"],
files: [
{ pattern: "spec/**/*.ts" },
{ pattern: "lib/**/*.ts" },
{ pattern: "node_modules/reflect-metadata/Reflect.js" },
{ pattern: "node_modules/zone.js/dist/zone.js" },
{ pattern: "node_modules/zone.js/dist/long-stack-trace-zone.js" },
{ pattern: "node_modules/zone.js/dist/proxy.js" },
{ pattern: "node_modules/zone.js/dist/sync-test.js" },
{ pattern: "node_modules/zone.js/dist/jasmine-patch.js" },
{ pattern: "node_modules/zone.js/dist/async-test.js" },
{ pattern: "node_modules/zone.js/dist/fake-async-test.js" }
],
preprocessors: {
"spec/**/*.ts": ["karma-typescript"],
"lib/**/*.ts": ["karma-typescript"]
},
reporters: ["progress", "karma-typescript"],
// Uncomment below if you want the default html
// coverage report + a summary on the console
karmaTypescriptConfig: {
compilerOptions: {
emitDecoratorMetadata: true,
experimentalDecorators: true,
module: "commonjs",
sourceMap: true,
target: "ES5"
},
include: ["lib/**/*.ts", "spec/**/*.ts"],
},
// Uncomment below if you want to disable code coverage
// instrumentation during debugging of tests
/*
karmaTypescriptConfig: {
disableCodeCoverageInstrumentation: true
},
//*/
browsers: ["Chrome"]
});
};