-
Notifications
You must be signed in to change notification settings - Fork 0
/
web-test-runner.config.cjs
98 lines (95 loc) · 1.93 KB
/
web-test-runner.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/* eslint-env node */
const { playwrightLauncher } = require("@web/test-runner-playwright");
const { createUnitTestsConfig } = require("./wtr-utils.cjs");
const devServerConfig = require("./web-dev-server.config.cjs");
/**
* @typedef {import('@web/test-runner').TestRunnerConfig} TestRunnerConfig
*/
const allPackages = [
"a11y-base",
"accordion",
"app-layout",
"avatar",
"avatar-group",
"button",
"checkbox",
"checkbox-group",
"combo-box",
"component-base",
"confirm-dialog",
"context-menu",
"custom-field",
"date-picker",
"date-time-picker",
"details",
"dialog",
"email-field",
"field-base",
"field-highlighter",
"form-layout",
"grid",
"horizontal-layout",
"icon",
"icons",
"input-container",
"integer-field",
"item",
"items.txt",
"list-box",
"lit-renderer",
"login",
"menu-bar",
"message-input",
"message-list",
"multi-select-combo-box",
"notification",
"number-field",
"overlay",
"password-field",
"polymer-legacy-adapter",
"progress-bar",
"radio-group",
"scroller",
"select",
"split-layout",
"tabs",
"tabsheet",
"testing-helpers",
"text-area",
"text-field",
"time-picker",
"tooltip",
"upload",
"vaadin-development-mode-detector",
"vaadin-lumo-styles",
"vaadin-material-styles",
"vaadin-themable-mixin",
"vaadin-usage-statistics",
"vertical-layout",
"virtual-list",
];
let packageFilter = [];
// packageFilter = [...packageFilter, "tabs"];
// console.log("packages", packageFilter.join(', '));
/**
* @type {TestRunnerConfig}
*/
const baseConfig = {
staticLogging: false,
browsers: [playwrightLauncher()],
packageFilter,
coverageConfig: {
include: [`packages/**/src/**/*`, `packages/**/*.js`],
threshold: {
statements: 95,
branches: 95,
functions: 95,
lines: 95,
},
},
};
const unitTestsConfig = createUnitTestsConfig(baseConfig);
module.exports = {
...unitTestsConfig,
...devServerConfig,
};