Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (args.service === 'sauce') {
const platforms: { [key: string]: string } = {
WINDOWS: 'Windows 10',
MAC: 'OS X 10.12'
};
environments.forEach((environment: any) => {
if (environment.platform) {
environment.platform = environment.platform.map(
(platform: string) => {
return platforms[platform] || platform;
}
);
}
});
tunnel = 'SauceLabsTunnel';
} else if (args.service === 'testingbot') {
const platforms: { [key: string]: string } = {
WINDOWS: 'WIN10',
MAC: 'SIERRA'
};
environments.forEach((environment: any) => {
if (environment.platform) {
environment.platform = environment.platform.map(
(platform: string) => {
return platforms[platform] || platform;
}
);
}
});
tunnel = 'TestingBotTunnel';
}
suites.push('tests/unit/lib/util');
}
export const functionalSuites = [
'tests/functional/helpers/pollUntil',
'tests/functional/Server',
'tests/functional/Session',
'tests/functional/Element',
'tests/functional/Command'
];
export const excludeInstrumentation = /\b(?:tests|node_modules)\//;
export const filterErrorStack = true;
if (args.service === 'sauce') {
const platforms: { [key: string]: string } = {
WINDOWS: 'Windows 10',
MAC: 'OS X 10.12'
};
environments.forEach((environment: any) => {
if (environment.platform) {
environment.platform = environment.platform.map(
(platform: string) => {
return platforms[platform] || platform;
}
);
}
});
tunnel = 'SauceLabsTunnel';
} else if (args.service === 'testingbot') {
const platforms: { [key: string]: string } = {