generated from markcellus/scroll-js
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf.js
35 lines (34 loc) · 970 Bytes
/
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
module.exports = function(config) {
config.set({
files: [{ pattern: 'tests/**/*.ts', type: 'module' }],
plugins: [
require.resolve('@open-wc/karma-esm'),
'karma-mocha',
'karma-chrome-launcher',
'karma-coverage',
],
esm: {
nodeResolve: true,
compatibility: 'all',
fileExtensions: ['.ts'],
babel: true,
},
coverageReporter: {
includeAllSources: true,
dir: '.coverage',
reporters: [
{ type: 'lcov', subdir: '.' },
{ type: 'text-summary' },
],
},
reporters: ['progress', 'coverage'],
frameworks: ['esm', 'mocha'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
browsers: ['ChromeHeadless'],
autoWatch: true,
singleRun: true,
concurrency: Infinity,
});
};