forked from facebookarchive/WebDriverAgent
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
29 lines (24 loc) · 896 Bytes
/
index.js
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
import * as dependencies from './lib/check-dependencies';
import * as proxies from './lib/no-session-proxy';
import * as driver from './lib/webdriveragent';
import * as constants from './lib/constants';
import * as utils from './lib/utils';
import { asyncify } from 'asyncbox';
const { checkForDependencies, bundleWDASim } = dependencies;
const { NoSessionProxy } = proxies;
const { WebDriverAgent } = driver;
const { WDA_BUNDLE_ID, BOOTSTRAP_PATH, WDA_BASE_URL, WDA_RUNNER_BUNDLE_ID, PROJECT_FILE } = constants;
const { resetTestProcesses } = utils;
// When run as a command line utility, this should check for the dependencies
if (require.main === module) {
asyncify(checkForDependencies);
}
export {
WebDriverAgent,
NoSessionProxy,
checkForDependencies, bundleWDASim,
resetTestProcesses,
BOOTSTRAP_PATH, WDA_BUNDLE_ID,
WDA_RUNNER_BUNDLE_ID, PROJECT_FILE,
WDA_BASE_URL,
};