forked from markcellus/scroll-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web-test-runner.config.mjs
47 lines (42 loc) · 1.26 KB
/
web-test-runner.config.mjs
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
import dotenv from 'dotenv';
import { esbuildPlugin } from '@web/dev-server-esbuild';
dotenv.config();
import { browserstackLauncher } from '@web/test-runner-browserstack';
const sharedCapabilities = {
'browserstack.user': process.env.BROWSERSTACK_USERNAME,
'browserstack.key': process.env.BROWSERSTACK_ACCESS_KEY,
name: 'test',
project: 'scroll-js',
build: `build ${process.env.GITHUB_RUN_NUMBER || 'unknown'}`,
};
export default {
files: 'tests/**/*.ts',
plugins: [esbuildPlugin({ ts: true, target: 'auto' })],
nodeResolve: true,
browsers: [
browserstackLauncher({
capabilities: {
...sharedCapabilities,
browserName: 'Firefox',
os: 'OS X',
os_version: 'Catalina',
},
}),
browserstackLauncher({
capabilities: {
...sharedCapabilities,
browserName: 'Safari',
os: 'OS X',
os_version: 'Catalina',
},
}),
browserstackLauncher({
capabilities: {
...sharedCapabilities,
browserName: 'iPhone',
device: 'iPhone 12',
os_version: '14',
},
}),
],
};