-
Notifications
You must be signed in to change notification settings - Fork 192
/
web-test-runner.config.js
42 lines (41 loc) · 1.14 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
const { playwrightLauncher } = require('@web/test-runner-playwright');
module.exports = {
files: ['packages/*/test/*.test.js'],
nodeResolve: true,
concurrency: 5,
coverage: true,
coverageConfig: {
report: true,
reportDir: 'coverage',
exclude: [
'packages/*/stories/*',
'packages/icons-ui/**',
'packages/icons-workflow/**',
'test/**',
'projects/**',
],
threshold: {
statements: 98,
branches: 94,
functions: 95,
lines: 98,
},
},
testRunnerHtml: (testRunnerImport) => `
<html>
<head></head>
<body>
<script type="module">
import '${testRunnerImport}';
window.process = window.process || {};
window.process.env = window.process.env || {};
window.process.env.NODE_ENV = window.process.env.NODE_ENV || 'production';
</script>
</body>
</html>
`,
browsers: [
playwrightLauncher({ product: 'chromium' }),
playwrightLauncher({ product: 'webkit' }),
],
};