-
Notifications
You must be signed in to change notification settings - Fork 688
/
karma.conf.js
42 lines (41 loc) · 1.18 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
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'karma-typescript'],
files: [
{pattern: 'src/**/*.ts'},
{pattern: 'test/**/*.ts'},
{pattern: 'test/**/*.html'},
{pattern: 'dist/**/*.min.js'}
],
preprocessors: {
'**/*.ts': ['karma-typescript'], // *.tsx for React Jsx
},
karmaTypescriptConfig: {
tsconfig: 'tsconfig.json',
// we include this here to keep our test files separate,
// but not include tests in normal builds
include: [ 'test/**/*.ts'],
reports: {} // Do not produce coverage html.
},
//logLevel: config.LOG_DEBUG,
reporters: ['progress', 'karma-typescript'],
browsers: ['Chrome_no_sandbox'],
customLaunchers: {
Chrome_no_sandbox: {
base: 'Chrome',
flags: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--headless',
'--disable-gpu',
'--remote-debugging-port=9222',
],
},
},
reportSlowerThan: 500,
browserNoActivityTimeout: 500000,
browserDisconnectTimeout: 300000,
pingTimeout: 1000000
});
};