Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 7dba2f9

Browse files
committed
chore(typescript): runner and launcher converted to typescript
1 parent 5504e10 commit 7dba2f9

File tree

11 files changed

+726
-681
lines changed

11 files changed

+726
-681
lines changed

lib/configParser.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ export interface Config {
5757
sauceKey?: string;
5858
sauceSeleniumAddress?: string;
5959
sauceUser?: string;
60+
v8Debug?: any;
61+
nodeDebug?: boolean;
62+
directConnect?: boolean;
63+
mockSelenium?: boolean;
64+
baseUrl?: string;
65+
untrackOutstandingTimeouts?: any;
66+
debuggerServerPort?: number;
67+
useAllAngular2AppRoots?: boolean;
68+
frameworkPath?: string;
69+
restartBrowserBetweenTests?: boolean;
70+
onPrepare?: any;
71+
beforeLaunch?: any;
72+
getMultiCapabilities?: any;
73+
elementExplorer?: any;
74+
afterLaunch?: any;
75+
debug?: boolean;
76+
resultJsonOutputFile?: any;
6077
}
6178

6279
export class ConfigParser {

lib/driverProviders/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export * from './attachSession';
2+
export * from './browserStack';
3+
export * from './direct';
4+
export * from './driverProvider';
5+
export * from './hosted';
6+
export * from './local';
7+
export * from './mock';
8+
export * from './sauce';

lib/globals.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1+
// This will clash with the node 'global' namespace...
2+
declare namespace global {
3+
var browser: any;
4+
var protractor: any;
5+
var $: any;
6+
var $$: any;
7+
var element: any;
8+
var by: any;
9+
var By: any;
10+
var DartObject: any;
11+
}
112
declare var browser: any;
13+
declare var protractor: any;
14+
declare var $: any;
15+
declare var $$: any;
16+
declare var element: any;
17+
declare var by: any;
18+
declare var By: any;
19+
declare var DartObject: any;
220

321
declare namespace webdriver {
422
class WebDriver {
@@ -9,9 +27,11 @@ declare namespace webdriver {
927

1028
class Session {
1129
getId: Function;
30+
getCapabilities: Function;
1231
}
1332

1433
class Promise {
34+
controlFlow: Function;
1535
then: Function;
1636
}
1737

lib/launcher.js

Lines changed: 0 additions & 262 deletions
This file was deleted.

0 commit comments

Comments
 (0)