-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathweb-test-runner.config.js
More file actions
32 lines (30 loc) · 910 Bytes
/
web-test-runner.config.js
File metadata and controls
32 lines (30 loc) · 910 Bytes
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
import { playwrightLauncher } from '@web/test-runner-playwright';
// import { esbuildPlugin } from '@web/dev-server-esbuild';
/** @type {import("@web/test-runner").TestRunnerConfig} */
export default {
rootDir: '.',
files: ['./tests/**/*.test.js'], // "default" group
watch: process.argv.includes("--watch"),
concurrentBrowsers: 3,
nodeResolve: true,
testFramework: {
config: {
ui: 'tdd',
timeout: 3000,
retries: 1
}
},
plugins: [
],
browsers: [
playwrightLauncher({ product: 'chromium', launchOptions: {
headless: !(process.env.DEBUG?.toLowerCase() === "chrome")
}}),
playwrightLauncher({ product: 'firefox', launchOptions: {
headless: !(process.env.DEBUG?.toLowerCase() === "firefox")
}}),
playwrightLauncher({ product: 'webkit', launchOptions: {
headless: !(process.env.DEBUG?.toLowerCase() === "webkit")
}}),
],
}