-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.config.cjs
36 lines (36 loc) · 1 KB
/
karma.config.cjs
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
module.exports = function (config) {
config.set({
autoWatch: false,
singleRun: true,
frameworks: ['qunit'],
files: [
'src/index.js',
'src/__test__/*.test.js',
],
browsers: ['Chrome', 'Firefox'],
preprocessors: {
'src/index.js': ['webpack', 'coverage'],
'src/__test__/*.test.js': ['webpack'],
},
reporters: ['progress', 'coverage'],
coverageReporter: {
dir: 'coverage/',
reporters: [
{ type: 'html', subdir: 'html' },
{ type: 'text-summary' },
],
},
plugins: [
require('karma-qunit'),
require('karma-chrome-launcher'),
require('karma-firefox-launcher'),
require('karma-coverage'),
require('karma-webpack')
],
webpack: {
watch: false
},
colors: true,
concurrency: Number.POSITIVE_INFINITY
});
};