forked from angelnikolov/ts-cacheable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
44 lines (44 loc) · 1.22 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
module.exports = function(config) {
config.set({
frameworks: ['jasmine', 'karma-typescript'],
browsers: ['ChromeHeadlessNoSandbox'],
reporters: ['progress', 'karma-typescript'],
files: [
'./index.ts',
'./common/index.ts',
'./common/IAsyncStorageStrategy.ts',
'./common/IStorageStrategy.ts',
'./common/DOMStorageStrategy.ts',
'./common/InMemoryStorageStrategy.ts',
'./cacheable.decorator.ts',
'./cache-buster.decorator.ts',
'./promise.cache-buster.decorator.ts',
'./promise.cacheable.decorator.ts',
'./specs/observable-cacheable.decorator.spec.ts',
'./specs/promise-cacheable.decorator.spec.ts',
'./specs/cat.ts',
'./specs/service.interface.ts',
],
preprocessors: {
'**/*.ts': 'karma-typescript'
},
karmaTypescriptConfig: {
tsconfig: './tsconfig.json',
reports: {
lcovonly: {
"directory": "coverage",
"subdirectory": "lcov",
"filename": "coverage.xml",
}
}
},
// you can define custom flags
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: true
});
};