-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.browserstack.ts
101 lines (99 loc) · 2.98 KB
/
vitest.browserstack.ts
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
99
100
101
/// <reference types="@chialab/vitest-provider-browserstack" />
import { mergeConfig } from 'vitest/config';
import vitestConfig from './vitest.config';
export default mergeConfig(vitestConfig, {
test: {
coverage: {
provider: 'istanbul',
},
browser: {
enabled: true,
provider: '@chialab/vitest-provider-browserstack',
name: 'browserstack:chrome-latest',
slowHijackESM: false,
api: {
host: '0.0.0.0',
port: 5176,
},
},
},
browserstack: {
capabilities: {
'chrome-latest': {
'browserName': 'Chrome',
'bstack:options': {
browserVersion: 'latest',
},
},
'chrome-latest-1': {
'browserName': 'Chrome',
'bstack:options': {
browserVersion: 'latest-1',
},
},
'chrome-latest-2': {
'browserName': 'Chrome',
'bstack:options': {
browserVersion: 'latest-2',
},
},
// oldest chrome supported by vitest
'chrome-80': {
'browserName': 'Chrome',
'bstack:options': {
browserVersion: '80',
},
},
'firefox-latest': {
'browserName': 'Firefox',
'bstack:options': {
browserVersion: 'latest',
},
},
'firefox-latest-1': {
'browserName': 'Firefox',
'bstack:options': {
browserVersion: 'latest-1',
},
},
'firefox-latest-2': {
'browserName': 'Firefox',
'bstack:options': {
browserVersion: 'latest-2',
},
},
// oldest firefox supported by vitest
'firefox-90': {
'browserName': 'Firefox',
'bstack:options': {
browserVersion: '90',
},
},
'safari-latest': {
'browserName': 'Safari',
'bstack:options': {
browserVersion: 'latest',
},
},
'safari-16': {
'browserName': 'Safari',
'bstack:options': {
browserVersion: '16',
},
},
// oldest safari supported by vitest
'safari-15': {
'browserName': 'Safari',
'bstack:options': {
browserVersion: '15.6',
},
},
'edge-latest': {
'browserName': 'MicrosoftEdge',
'bstack:options': {
browserVersion: 'latest',
},
},
},
},
});