-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb-test-runner.config.js
More file actions
68 lines (64 loc) · 1.83 KB
/
web-test-runner.config.js
File metadata and controls
68 lines (64 loc) · 1.83 KB
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
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { playwrightLauncher } from '@web/test-runner-playwright';
export default {
files: 'spec/**/*.spec.ts',
nodeResolve: true,
plugins: [
esbuildPlugin({
ts: true,
target: 'esnext'
})
],
browsers: [
playwrightLauncher({
product: 'chromium',
launchOptions: {
headless: true,
args: [
'--disable-web-security',
'--disable-dev-shm-usage',
// Disable throttling and background timer throttling
'--disable-background-timer-throttling',
'--disable-backgrounding-occluded-windows',
'--disable-renderer-backgrounding',
// Disable throttling of JavaScript timers in background tabs
'--disable-background-media-suspend',
'--disable-low-res-tiling',
// Disable CPU and GPU throttling
'--disable-background-mode',
'--disable-default-apps',
// High precision timing
'--enable-precise-memory-info',
'--enable-high-resolution-time',
// Disable other throttling mechanisms
'--disable-hang-monitor',
'--disable-prompt-on-repost',
'--disable-domain-reliability',
'--disable-features=TranslateUI,VizDisplayCompositor'
]
}
}),
playwrightLauncher({
product: 'firefox',
launchOptions: {
headless: true
}
}),
playwrightLauncher({
product: 'webkit',
launchOptions: {
headless: true
}
})
],
// Timeouts
browserStartTimeout: 90000,
testsStartTimeout: 90000,
testsFinishTimeout: 180000,
// Handle ES modules properly
preserveSymlinks: true,
// Configure for CI environment
concurrency: 1,
// Suppress browser logs for expected errors
browserLogs: false
};