-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.cjs
38 lines (36 loc) · 867 Bytes
/
karma.conf.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
37
38
const {
createDefaultConfig
} = require('@open-wc/testing-karma');
const merge = require('deepmerge');
module.exports = (config) => {
config.set(
merge(createDefaultConfig(config), {
frameworks: ['mocha', 'chai', 'sinon'],
client: {
mocha: {
ui: 'tdd',
},
},
files: [{
pattern: config.grep ? config.grep : './dist/**/*.spec.js',
type: 'module',
}, ],
// See the karma-esm docs for all options
esm: {
nodeResolve: true,
},
coverageIstanbulReporter: {
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true,
combineBrowserReports: true,
skipFilesWithNoCoverage: true,
instrumentation: {
excludes: [
"./dist/**"
]
}
},
})
);
return config;
};