forked from open-wc/open-wc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
34 lines (31 loc) · 825 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
/* eslint-disable import/no-extraneous-dependencies */
const merge = require('webpack-merge');
const { createDefaultConfig } = require('./packages/testing-karma');
const packagesToTestInBrowser = [
'dedupe-mixin',
'lit-helpers',
'scoped-elements',
'semantic-dom-diff',
'testing',
'testing-helpers',
].join('|');
module.exports = config => {
config.set(
merge(createDefaultConfig(config), {
files: [
// allows running single tests with the --grep flag 188 tests
{
pattern: config.grep
? config.grep
: `packages/*(${packagesToTestInBrowser})/test/**/*.test.js`,
type: 'module',
},
],
esm: {
nodeResolve: true,
coverageExclude: ['**/testing/import-wrappers/**'],
},
}),
);
return config;
};