-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.cjs
93 lines (87 loc) · 2.52 KB
/
karma.conf.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
require('dotenv').config();
module.exports = function (config) {
config.set({
browserStack: {
project: 'Tikki',
name: 'Tikki test',
video: false,
username: process.env.BROWSERSTACK_USERNAME,
accessKey: process.env.BROWSERSTACK_ACCESS_KEY,
},
basePath: '',
frameworks: ['mocha'],
plugins: ['karma-mocha', 'karma-mocha-reporter', 'karma-browserstack-launcher'],
files: ['./tests/dist/index.global.js'],
reporters: ['mocha', 'BrowserStack'],
logLevel: config.LOG_INFO,
colors: true,
autoWatch: false,
browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 2,
singleRun: true,
customLaunchers: {
// Windows 11
bs_Windows_11_Chrome_Latest: {
name: 'Tikki: Windows 11 - Chrome Latest',
base: 'BrowserStack',
browser: 'chrome',
browser_version: 'latest',
os: 'Windows',
os_version: '11',
},
bs_Windows_11_Firefox_Latest: {
name: 'Tikki: Windows 11 - Firefox Latest',
base: 'BrowserStack',
browser: 'firefox',
browser_version: 'latest',
os: 'Windows',
os_version: '11',
},
// OS X Sonoma
bs_OSX_Sonoma_Chrome_Latest: {
name: 'Tikki: OS X Sonoma - Chrome Latest',
base: 'BrowserStack',
browser: 'chrome',
browser_version: 'latest',
os: 'OS X',
os_version: 'Sonoma',
},
bs_OSX_Sonoma_Safari_Latest: {
name: 'Tikki: OS X Sonoma - Safari Latest',
base: 'BrowserStack',
browser: 'safari',
browser_version: 'latest',
os: 'OS X',
os_version: 'Sonoma',
},
// iOS
bs_iPhone_15_iOS_17_Safari_Latest: {
name: 'Tikki: iPhone 15 - iOS 17 - Safari Latest',
base: 'BrowserStack',
device: 'iPhone 15',
os: 'ios',
os_version: '17',
real_mobile: true,
},
// Android
bs_Google_Pixel_8_Android_14_Chrome_Latest: {
name: 'Tikki: Google Pixel 8 - Android 14 - Chrome Latest',
base: 'BrowserStack',
device: 'Google Pixel 8',
os: 'android',
os_version: '14.0',
browser: 'chrome',
browser_version: 'latest',
real_mobile: true,
},
},
browsers: [
'bs_Windows_11_Chrome_Latest',
'bs_Windows_11_Firefox_Latest',
'bs_OSX_Sonoma_Chrome_Latest',
'bs_OSX_Sonoma_Safari_Latest',
'bs_iPhone_15_iOS_17_Safari_Latest',
'bs_Google_Pixel_8_Android_14_Chrome_Latest',
],
});
};