mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
19 lines
614 B
TypeScript
19 lines
614 B
TypeScript
// wdio.grid.conf.ts
|
|
// extends the main configuration file to add the selenium grid address
|
|
import { merge } from 'lodash-es';
|
|
import { URL } from 'url';
|
|
|
|
// @ts-ignore
|
|
import { config as defaultConfig } from './wdio.conf.ts?grid=true';
|
|
|
|
const gridUrl = new URL(process.env.GRID_HOST_URL as string);
|
|
const protocol = gridUrl.protocol.replace(':', '');
|
|
|
|
export const config = merge(defaultConfig, {
|
|
protocol,
|
|
hostname: gridUrl.hostname,
|
|
port: gridUrl.port ? parseInt(gridUrl.port, 10) // Convert port to number
|
|
: protocol === 'http' ? 80 : 443,
|
|
path: gridUrl.pathname
|
|
}, { clone: false });
|