-
Notifications
You must be signed in to change notification settings - Fork 2
/
karma.conf.js
41 lines (38 loc) · 961 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
/*global module, require */
// Karma configuration
// Generated on Fri Jan 03 2014 22:31:12 GMT+0100 (CET)
module.exports = function (config) {
'use strict';
config.set({
basePath: '',
frameworks: ['jasmine', 'karma-typescript'],
files: ['src/**/*.ts'],
exclude: ['src/index.js'],
preprocessors: {
'**/*.ts': ['karma-typescript'],
'src/**/*.ts': 'coverage',
},
reporters: ['progress', 'karma-typescript', 'junit', 'coverage'],
junitReporter: {
outputDir: '',
useBrowserName: false,
outputFile: 'test-results.xml',
},
karmaTypescriptConfig: {
tsconfig: './tsconfig.json',
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeNoSandbox'],
customLaunchers: {
ChromeNoSandbox: {
base: 'Chrome',
flags: ['--no-sandbox'],
},
},
captureTimeout: 60000,
singleRun: false,
});
};