-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathkarma.conf.js
62 lines (45 loc) · 2.25 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
'use strict';
module.exports = function (config) {
config.set({
basePath: './',
files: [
// paths loaded by Karma
{pattern: 'node_modules/es6-shim/es6-shim.js', included: true, watched: false},
{pattern: 'node_modules/zone.js/dist/zone.js', included: true, watched: false},
{pattern: 'node_modules/reflect-metadata/Reflect.js', included: true, watched: false},
{pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false},
{pattern: 'node_modules/@angular/**/*.js', included: false, watched: false},
{pattern: 'node_modules/systemjs/dist/system.src.js', included: true, watched: false},
{pattern: 'node_modules/autopulous-xdom/xdom.js', included: true, watched: false},
{pattern: 'node_modules/autopulous-xdom2jso/xdom2jso.js', included: true, watched: false},
{pattern: 'src/systemjs.config.js', included: true, watched: false},
// shim
{pattern: 'src/[email protected]', included: true, watched: false},
// paths loaded via module imports
{pattern: 'dist/**/*.js', served: true, included: false, watched: true},
// paths to support debugging with source maps in dev tools
{pattern: 'src/**/*.ts', included: false, watched: false},
{pattern: 'map/**/*.js.map', included: false, watched: false}
],
// proxied base paths
proxies: {
// required for component assets fetched by Angular
'/vendor/': '/base/node_modules/'
},
autoWatch: true,
logLevel: config.LOG_DEBUG,
frameworks: ['jasmine'],
browsers: ['Chrome'],
plugins: ['karma-jasmine', 'karma-chrome-launcher', 'karma-spec-reporter'],
reporters: ["spec"],
specReporter: {
maxLogLines: 50,
suppressFailed: false,
suppressPassed: false,
suppressSkipped: false,
suppressErrorSummary: true
}
});
};
console.log('Reminder: if no tests ran, make sure that those were built and that the [email protected] file is in the app/ directory');
console.log('');