-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
33 lines (32 loc) · 1.08 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function (config) {
config.set({
browserDisconnectTimeout: -1,
frameworks: ['mocha', 'chai', 'karma-typescript'],
files: [
{ pattern: 'test/**/*.ts', included: true, served: true, watched: false },
{ pattern: 'src/**/*.ts', included: true, served: true, watched: true },
],
preprocessors: {
'**/*.ts': 'karma-typescript',
},
karmaTypescriptConfig: {
tsconfig: './tsconfig.test.json',
reports: {
html: {
directory: 'coverage',
subdirectory: '.',
},
},
coverageOptions: {
instrumentation: true,
exclude: /\.(d|spec|test)\.ts/i,
},
},
reporters: ['progress', 'karma-typescript'],
browsers: ['ChromeHeadless'],
logLevel: config.LOG_INFO,
singleRun: true,
});
};