-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
44 lines (44 loc) · 1.59 KB
/
Copy pathkarma.conf.js
File metadata and controls
44 lines (44 loc) · 1.59 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
module.exports = function (config) {
config.set({
basePath: "",
files: [
"node_modules/systemjs/dist/system.src.js",
"node_modules/systemjs/dist/system-polyfills.js",
"node_modules/core-js/client/shim.min.js",
"node_modules/zone.js/dist/zone.js",
"node_modules/zone.js/dist/proxy.js",
"node_modules/zone.js/dist/sync-test.js",
"node_modules/zone.js/dist/async-test.js",
"node_modules/zone.js/dist/jasmine-patch.js",
"node_modules/reflect-metadata/Reflect.js",
{pattern: "node_modules/rxjs/**/*.js", included: false, watched: false},
{pattern: "node_modules/@angular/**/*.js", included: false, watched: false},
{pattern: "systemjs.config.js", included: false, watched: false},
"karma-test-shim.js",
{pattern: "app/**/*.js", included: false, watched: true},
{pattern: "app/**/*.ts", included: false, watched: true},
{pattern: "app/**/*.map", included: false, watched: false},
{pattern: "app/**/*.html", included: false, watched: true},
{pattern: "app/**/*.css", included: false, watched: true}
],
frameworks: ["jasmine"],
reporters: ["progress", "coverage", "karma-remap-istanbul"],
preprocessors: {
"app/**/!(*spec).js": ['sourcemap', 'coverage']
},
coverageReporter: {
type: "json",
subdir: ".",
file: 'coverage-final.json'
},
remapIstanbulReporter: {
src: 'coverage/coverage-final.json',
reports: {
html: 'coverage'
},
timeoutNotCreated: 1000,
timeoutNoMoreFiles: 1000
},
browsers: ["PhantomJS"]
});
};