-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
executable file
·54 lines (42 loc) · 1.48 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
// Karma configuration
// Generated on Sat Dec 16 2017 21:57:37 GMT-0500 (Eastern Standard Time)
const puppeteer = require('puppeteer');
process.env.CHROME_BIN = puppeteer.executablePath();
module.exports = function(config) {
config.set({
frameworks: ["jasmine", "karma-typescript"],
plugins: [
require('karma-typescript'),
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter')
],
client:{
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
fixWebpackSourcePaths: true
},
files: [
{ pattern: "src/**/*.ts" }
],
typescriptPreprocessor: {
// options passed to the typescript compiler
options: {
target: 'ES6' // (optional) Specify ECMAScript target version: 'ES3' (default), or 'ES5'
}
},
preprocessors: {
"**/*.ts": ["karma-typescript"]
},
reporters: ['progress', 'kjhtml'],
browsers: ["Chrome"],
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
singleRun: false,
restartOnFileChange: true
});
};