-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.config.js
45 lines (44 loc) · 1.07 KB
/
karma.config.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
require('./env');
module.exports = function(config) {
config.set({
frameworks: ['jasmine', 'karma-typescript'],
files: [
'src/**/*.ts',
'test-e2e/web/**/*.ts',
],
preprocessors: {
"**/*.ts": ["karma-typescript", 'env']
},
reporters: ['progress', 'karma-typescript'],
port: 9876, // karma web server port
colors: true,
logLevel: config.LOG_INFO,
browsers: ['Chrome_without_security'],
autoWatch: false,
singleRun: true,
concurrency: Infinity,
envPreprocessor: [
'BASE_URL',
'PUBLIC_KEY',
'PRIVATE_KEY',
],
karmaTypescriptConfig: {
compilerOptions: {
emitDecoratorMetadata: true,
experimentalDecorators: true,
module: "commonjs",
sourceMap: true,
target: "ES5",
lib: ["es2015", "es2016", "es2017", "dom"],
allowSyntheticDefaultImports: true,
},
exclude: ["tools"]
},
customLaunchers: {
Chrome_without_security: {
base: 'ChromeHeadless',
flags: ['--disable-web-security']
}
}
})
};