-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathkarma.conf.js
57 lines (56 loc) · 1.71 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
55
56
57
const jasmineSeedReporter = require('karma-jasmine-seed-reporter');
module.exports = function (config) {
config.set({
frameworks: ['jasmine', 'karma-typescript'],
browsers: ['ChromeHeadlessNoSandbox'],
reporters: ['progress', 'karma-typescript', 'jasmine-seed'],
plugins: ['karma-*', jasmineSeedReporter],
client: {
jasmine: {
random: true,
// seed: process.env['JASMINE_SEED'] // allows you to override the seed via an environment variable
},
},
files: [
'./index.ts',
'./common/index.ts',
'./common/IAsyncStorageStrategy.ts',
'./common/IStorageStrategy.ts',
'./common/DOMStorageStrategy.ts',
'./common/LocalStorageStrategy.ts',
'./common/InMemoryStorageStrategy.ts',
'./common/CacheBusterFunctions.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/cache-buster.decorator.spec.ts',
'./specs/promise.cache-buster.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
});
};