-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
testem.browserstack.js
72 lines (70 loc) · 1.33 KB
/
testem.browserstack.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
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
const FailureOnlyPerBrowserReporter = require('testem-failure-only-reporter/grouped-by-browser');
const BrowserStackLaunchers = {
BS_Safari_15: {
exe: 'node_modules/.bin/browserstack-launch',
args: [
'--os',
'OS X',
'--osv',
'Monterey',
'--b',
'safari',
'--bv',
'latest', // Will always be 15.x on Monterey
'-t',
'1200',
'--u',
'<url>',
],
protocol: 'browser',
},
BS_MS_Edge: {
exe: 'node_modules/.bin/browserstack-launch',
args: [
'--os',
'Windows',
'--osv',
'10',
'--b',
'edge',
'--bv',
'128',
'-t',
'1200',
'--u',
'<url>',
],
protocol: 'browser',
},
BS_MS_Chrome: {
exe: 'node_modules/.bin/browserstack-launch',
args: [
'--os',
'Windows',
'--osv',
'11',
'--b',
'Chrome',
'--bv',
'109',
'-t',
'1200',
'--u',
'<url>',
],
protocol: 'browser',
},
};
module.exports = {
test_page: 'index.html',
cwd: 'dist',
timeout: 1200,
parallel: 4,
disable_watching: true,
launch_in_dev: [],
reporter: FailureOnlyPerBrowserReporter,
browser_start_timeout: 2000,
browser_disconnect_timeout: 120,
launchers: BrowserStackLaunchers,
launch_in_ci: Object.keys(BrowserStackLaunchers),
};