-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathkarma.conf.js
47 lines (45 loc) · 1.13 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
module.exports = function(config) {
config.set({
frameworks: ['jasmine', 'karma-typescript'],
files: [
{ pattern: 'src/**/*.ts' },
{ pattern: 'tests/**/*.ts' }
],
preprocessors: {
'**/*.ts': 'karma-typescript'
},
karmaTypescriptConfig: {
exclude: ['demos'],
bundlerOptions: {
entrypoints: /.*\.spec\.ts$/,
},
compilerOptions: {
rootDir: 'libs',
skipLibCheck: true,
lib: ['ES2015', 'DOM'],
target: "es6",
paths: {
'custom-elements-ts': ['src/index']
},
baseUrl: '.'
},
coverageOptions: {
exclude: /((.*\.spec)|index)\.ts/
},
reports: {
'html': {
'directory': 'coverage',
'subdirectory': '.'
},
'text-summary': '',
'lcovonly': {
'directory': 'coverage',
'subdirectory': '.'
}
},
},
reporters: ['mocha', 'karma-typescript'],
browsers: ['ChromeHeadless'],
failOnEmptyTestSuite: false
});
};