-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathkarma.conf.js
More file actions
27 lines (27 loc) · 745 Bytes
/
Copy pathkarma.conf.js
File metadata and controls
27 lines (27 loc) · 745 Bytes
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
module.exports = function(config) {
config.set({
basePath: '',
browsers: ['Chrome'],
client:{ clearContext: false }, // leave Jasmine Spec Runner output visible in browser
colors: true,
concurrency: Infinity,
files: ['src/index.spec.ts', 'dist/index.js'],
frameworks: ['jasmine', 'karma-typescript'],
karmaTypescriptConfig: {
compilerOptions: {
allowJs: true,
},
tsconfig: "./tsconfig.spec.json",
reports: {
"html": "coverage",
"lcovonly": "coverage",
},
},
port: 9876,
preprocessors: {
'dist/index.js': 'karma-typescript',
'src/index.spec.ts': 'karma-typescript',
},
reporters: ["karma-typescript", 'progress'],
});
};