-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweb-test-runner.config.js
45 lines (43 loc) · 1.21 KB
/
web-test-runner.config.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
36
37
38
39
40
41
42
43
44
45
/* eslint-disable import/no-extraneous-dependencies */
import { esbuildPlugin } from '@web/dev-server-esbuild'
import rdfjs from 'rdfjs-eds-plugin'
import { fromRollup } from '@web/dev-server-rollup'
import commonjs from '@rollup/plugin-commonjs'
import fakeStreamModules from '@rdfjs-elements/testing'
import alias from '@rollup/plugin-alias'
const config = {
files: [
'packages/rdf-editor/**/*.test.js',
'packages/rdf-snippet/**/*.test.js',
'packages/sparql-editor/**/*.test.js',
'packages/lit-helpers/**/*.test.js',
],
nodeResolve: true,
concurrency: 1,
plugins: [
esbuildPlugin({ target: 'auto' }),
rdfjs,
fakeStreamModules(),
fromRollup(alias)({
entries: [{ find: 'crypto', replacement: 'crypto-js' }],
}),
fromRollup(commonjs)({
exclude: [
'**/node_modules/@open-wc/**/*',
'**/node_modules/chai/**/*',
'**/node_modules/chai-dom/**/*',
'**/node_modules/sinon-chai/**/*',
],
}),
],
coverage: true,
coverageConfig: {
exclude: [
'node_modules/**',
'packages/rdf-editor/src/mode/*.js',
'packages/sparql-editor/src/mode/*.js',
'packages/testing-helpers/**',
],
},
}
export default config