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

Commit f941c25

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

File tree

11 files changed

+732
-681
lines changed

11 files changed

+732
-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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
1+
// Typescript transpiling will give a warning about 'global'. This work around
2+
// is to allow protractor to set global variables. Warning message as follows:
3+
//
4+
// lib/globals.d.ts(2,19): error TS2300: Duplicate identifier 'global'.
5+
// typings/main/ambient/node/index.d.ts(33,13): error TS2300: Duplicate
6+
// identifier 'global'.
7+
declare namespace global {
8+
var browser: any;
9+
var protractor: any;
10+
var $: any;
11+
var $$: any;
12+
var element: any;
13+
var by: any;
14+
var By: any;
15+
var DartObject: any;
16+
}
117
declare var browser: any;
18+
declare var protractor: any;
19+
declare var $: any;
20+
declare var $$: any;
21+
declare var element: any;
22+
declare var by: any;
23+
declare var By: any;
24+
declare var DartObject: any;
225

326
declare namespace webdriver {
427
class WebDriver {
@@ -9,9 +32,11 @@ declare namespace webdriver {
932

1033
class Session {
1134
getId: Function;
35+
getCapabilities: Function;
1236
}
1337

1438
class Promise {
39+
controlFlow: Function;
1540
then: Function;
1641
}
1742

lib/launcher.js

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

0 commit comments

Comments
 (0)